Struct serde_derive_internals::attr::Variant
source · [−]pub struct Variant { /* private fields */ }
Expand description
Represents variant attribute information
Implementations
sourceimpl Variant
impl Variant
pub fn from_ast(cx: &Ctxt, variant: &Variant) -> Self
pub fn name(&self) -> &Name
pub fn aliases(&self) -> Vec<String>
pub fn rename_by_rules(&mut self, rules: &RenameAllRules)
pub fn rename_all_rules(&self) -> &RenameAllRules
pub fn ser_bound(&self) -> Option<&[WherePredicate]>
pub fn de_bound(&self) -> Option<&[WherePredicate]>
pub fn skip_deserializing(&self) -> bool
pub fn skip_serializing(&self) -> bool
pub fn other(&self) -> bool
pub fn serialize_with(&self) -> Option<&ExprPath>
pub fn deserialize_with(&self) -> Option<&ExprPath>
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl !Send for Variant
impl !Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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