pub struct SerdeVariant {
pub rename: Option<String>,
pub rename_all: Option<Inflection>,
pub skip: bool,
pub untagged: bool,
}Expand description
Serde attributes parsed from an enum variant.
Fields§
§rename: Option<String>§rename_all: Option<Inflection>§skip: bool§untagged: boolImplementations§
Source§impl SerdeVariant
impl SerdeVariant
Sourcepub fn from_attrs(attrs: &[Attribute]) -> Result<Self>
pub fn from_attrs(attrs: &[Attribute]) -> Result<Self>
Parse serde variant attributes.
Trait Implementations§
Source§impl Clone for SerdeVariant
impl Clone for SerdeVariant
Source§fn clone(&self) -> SerdeVariant
fn clone(&self) -> SerdeVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerdeVariant
impl Debug for SerdeVariant
Source§impl Default for SerdeVariant
impl Default for SerdeVariant
Source§fn default() -> SerdeVariant
fn default() -> SerdeVariant
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerdeVariant
impl RefUnwindSafe for SerdeVariant
impl Send for SerdeVariant
impl Sync for SerdeVariant
impl Unpin for SerdeVariant
impl UnsafeUnpin for SerdeVariant
impl UnwindSafe for SerdeVariant
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