pub struct Container<'a> {
pub ident: Ident,
pub attrs: Container,
pub data: Data<'a>,
pub generics: &'a Generics,
pub original: &'a DeriveInput,
}
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.
original: &'a DeriveInput
Original input.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Container<'a>
impl<'a> RefUnwindSafe for Container<'a>
impl<'a> !Send for Container<'a>
impl<'a> !Sync for Container<'a>
impl<'a> Unpin for Container<'a>
impl<'a> UnwindSafe for Container<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more