Struct serde_codegen_internals::attr::Field [] [src]

pub struct Field {
    // some fields omitted
}

Represents field attribute information

Methods

impl Field
[src]

fn from_ast(cx: &ExtCtxt, index: usize, field: &StructField) -> Self

Extract out the #[serde(...)] attributes from a struct field.

fn name(&self) -> &Name

fn skip_serializing(&self) -> bool

fn skip_deserializing(&self) -> bool

fn skip_serializing_if(&self) -> Option<&Path>

fn default(&self) -> &FieldDefault

fn serialize_with(&self) -> Option<&Path>

fn deserialize_with(&self) -> Option<&Path>

fn ser_bound(&self) -> Option<&[WherePredicate]>

fn de_bound(&self) -> Option<&[WherePredicate]>

Trait Implementations

impl Debug for Field
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.