pub enum AttributeArg {
Flag(String),
NegatedFlag(String),
String(String),
Raw(String),
}Variants§
Flag(String)
A flag option, e.g., omitempty, skip, snake_case
NegatedFlag(String)
A negated flag, e.g., !omitempty
String(String)
A quoted string, e.g., "custom_name" (name override)
Raw(String)
A raw backtick literal, e.g., json:"name,string"
Trait Implementations§
Source§impl Clone for AttributeArg
impl Clone for AttributeArg
Source§impl Debug for AttributeArg
impl Debug for AttributeArg
Source§impl PartialEq for AttributeArg
impl PartialEq for AttributeArg
impl StructuralPartialEq for AttributeArg
Auto Trait Implementations§
impl Forget for AttributeArg
impl Freeze for AttributeArg
impl Move for AttributeArg
impl RefUnwindSafe for AttributeArg
impl Send for AttributeArg
impl Sync for AttributeArg
impl Unpin for AttributeArg
impl UnsafeUnpin for AttributeArg
impl UnwindSafe for AttributeArg
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