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: IdentThe struct or enum name (without generics).
attrs: ContainerAttributes on the structure, parsed for Serde.
data: Data<'a>The contents of the struct or enum.
generics: &'a GenericsAny generics on the struct or enum.
original: &'a DeriveInputOriginal 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