Struct serde_derive_internals::attr::Field
[−]
[src]
pub struct Field { /* fields omitted */ }Represents field attribute information
Methods
impl Field[src]
impl Fieldpub fn from_ast(
cx: &Ctxt,
index: usize,
field: &Field,
attrs: Option<&Variant>,
container_default: &Default
) -> Self[src]
pub fn from_ast(
cx: &Ctxt,
index: usize,
field: &Field,
attrs: Option<&Variant>,
container_default: &Default
) -> SelfExtract out the #[serde(...)] attributes from a struct field.
pub fn name(&self) -> &Name[src]
pub fn name(&self) -> &Namepub fn rename_by_rule(&mut self, rule: &RenameRule)[src]
pub fn rename_by_rule(&mut self, rule: &RenameRule)pub fn skip_serializing(&self) -> bool[src]
pub fn skip_serializing(&self) -> boolpub fn skip_deserializing(&self) -> bool[src]
pub fn skip_deserializing(&self) -> boolpub fn skip_serializing_if(&self) -> Option<&ExprPath>[src]
pub fn skip_serializing_if(&self) -> Option<&ExprPath>pub fn default(&self) -> &Default[src]
pub fn default(&self) -> &Defaultpub fn serialize_with(&self) -> Option<&ExprPath>[src]
pub fn serialize_with(&self) -> Option<&ExprPath>pub fn deserialize_with(&self) -> Option<&ExprPath>[src]
pub fn deserialize_with(&self) -> Option<&ExprPath>pub fn ser_bound(&self) -> Option<&[WherePredicate]>[src]
pub fn ser_bound(&self) -> Option<&[WherePredicate]>pub fn de_bound(&self) -> Option<&[WherePredicate]>[src]
pub fn de_bound(&self) -> Option<&[WherePredicate]>pub fn borrowed_lifetimes(&self) -> &BTreeSet<Lifetime>[src]
pub fn borrowed_lifetimes(&self) -> &BTreeSet<Lifetime>pub fn getter(&self) -> Option<&ExprPath>[src]
pub fn getter(&self) -> Option<&ExprPath>pub fn flatten(&self) -> bool[src]
pub fn flatten(&self) -> bool