pub struct Container<'a> {
    pub ident: Ident,
    pub attrs: Container,
    pub data: Data<'a>,
    pub generics: &'a Generics,
}
Expand description

A source data structure annotated with #[derive(Serialize)] and/or #[derive(Deserialize)], parsed into an internal representation.

Fields

ident: Ident

The struct or enum name (without generics).

attrs: Container

Attributes on the structure, parsed for Serde.

data: Data<'a>

The contents of the struct or enum.

generics: &'a Generics

Any generics on the struct or enum.

Implementations

Convert the raw Syn ast into a parsed container object, collecting errors in cx.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.