Struct serde_derive_internals::attr::Container [−][src]
Represents struct or enum attribute information.
Implementations
impl Container
[src]
pub fn from_ast(cx: &Ctxt, item: &DeriveInput) -> Self
[src]
Extract out the #[serde(...)]
attributes from an item.
pub fn name(&self) -> &Name
[src]
pub fn rename_all_rules(&self) -> &RenameAllRules
[src]
pub fn transparent(&self) -> bool
[src]
pub fn deny_unknown_fields(&self) -> bool
[src]
pub fn default(&self) -> &Default
[src]
pub fn ser_bound(&self) -> Option<&[WherePredicate]>
[src]
pub fn de_bound(&self) -> Option<&[WherePredicate]>
[src]
pub fn tag(&self) -> &TagType
[src]
pub fn type_from(&self) -> Option<&Type>
[src]
pub fn type_try_from(&self) -> Option<&Type>
[src]
pub fn type_into(&self) -> Option<&Type>
[src]
pub fn remote(&self) -> Option<&Path>
[src]
pub fn is_packed(&self) -> bool
[src]
pub fn identifier(&self) -> Identifier
[src]
pub fn has_flatten(&self) -> bool
[src]
pub fn mark_has_flatten(&mut self)
[src]
pub fn custom_serde_path(&self) -> Option<&Path>
[src]
pub fn serde_path(&self) -> Cow<'_, Path>
[src]
pub fn expecting(&self) -> Option<&str>
[src]
Error message generated when type can’t be deserialized.
If None
, default message will be used
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,