Struct serde_derive_internals::attr::Container
source · [−]pub struct Container { /* private fields */ }
Expand description
Represents struct or enum attribute information.
Implementations
sourceimpl 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 RefUnwindSafe for Container
impl !Send for Container
impl !Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more