pub struct Container<'a> {
pub ident: Ident,
pub attrs: HashMap<String, Val>,
pub data: Data<'a>,
pub generics: &'a Generics,
pub original: &'a DeriveInput,
}Expand description
The root Container for all
let root:Container = from_ast(…)
Fields§
§ident: IdentThe struct or enum name (without generics).
attrs: HashMap<String, Val>Attributes on the structure.
data: Data<'a>The contents of the struct or enum.
generics: &'a GenericsAny generics on the struct or enum.
original: &'a DeriveInputOriginal input.
Trait 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