pub struct Container { /* private fields */ }
Expand description
Represents struct or enum attribute information.
Implementations§
Source§impl Container
impl Container
Sourcepub fn from_ast(cx: &Ctxt, item: &DeriveInput) -> Self
pub fn from_ast(cx: &Ctxt, item: &DeriveInput) -> Self
Extract out the #[serde(...)]
attributes from an item.
pub fn name(&self) -> &Name
pub fn rename_all_rules(&self) -> &RenameAllRules
pub fn transparent(&self) -> bool
pub fn deny_unknown_fields(&self) -> bool
pub fn default(&self) -> &Default
pub fn ser_bound(&self) -> Option<&[WherePredicate]>
pub fn de_bound(&self) -> Option<&[WherePredicate]>
pub fn tag(&self) -> &TagType
pub fn type_from(&self) -> Option<&Type>
pub fn type_try_from(&self) -> Option<&Type>
pub fn type_into(&self) -> Option<&Type>
pub fn remote(&self) -> Option<&Path>
pub fn is_packed(&self) -> bool
pub fn identifier(&self) -> Identifier
pub fn has_flatten(&self) -> bool
pub fn mark_has_flatten(&mut self)
pub fn custom_serde_path(&self) -> Option<&Path>
pub fn serde_path(&self) -> Cow<'_, Path>
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl !Send for Container
impl !Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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