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

pub struct Field { /* fields omitted */ }

Represents field attribute information

Methods

impl Field[src]

pub fn from_ast(cx: &Ctxt, index: usize, field: &Field) -> Self[src]

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

pub fn name(&self) -> &Name[src]

pub fn rename_by_rule(&mut self, rule: &RenameRule)[src]

pub fn skip_serializing(&self) -> bool[src]

pub fn skip_deserializing(&self) -> bool[src]

pub fn skip_serializing_if(&self) -> Option<&Path>[src]

pub fn default(&self) -> &Default[src]

pub fn serialize_with(&self) -> Option<&Path>[src]

pub fn deserialize_with(&self) -> Option<&Path>[src]

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

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

Trait Implementations

impl Debug for Field[src]

Auto Trait Implementations

impl Send for Field

impl Unpin for Field

impl Sync for Field

impl UnwindSafe for Field

impl RefUnwindSafe for Field

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]