Struct serde_derive_internals::attr::Container[][src]

pub struct Container { /* fields omitted */ }

Represents struct or enum attribute information.

Implementations

impl Container[src]

pub fn from_ast(cx: &Ctxt, item: &DeriveInput) -> Self[src]

Extract out the #[serde(...)] attributes from an item.

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

pub fn rename_all_rules(&self) -> &RenameAllRules[src]

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

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

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

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

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

pub fn tag(&self) -> &TagType[src]

pub fn type_from(&self) -> Option<&Type>[src]

pub fn type_try_from(&self) -> Option<&Type>[src]

pub fn type_into(&self) -> Option<&Type>[src]

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

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

pub fn identifier(&self) -> Identifier[src]

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

pub fn mark_has_flatten(&mut self)[src]

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

pub fn serde_path(&self) -> Cow<'_, Path>[src]

pub fn expecting(&self) -> Option<&str>[src]

Error message generated when type can’t be deserialized. If None, default message will be used

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.