pub enum Derive {
Debug,
Clone,
Serialize,
Deserialize,
Eq,
PartialEq,
All,
}
Expand description
Supported Derive Macros
Variants§
Debug
Generate Debug
code for the generated strucutres. Generated for all structures by
default.
Clone
Generate ‘Clone’ code for the generated structures.
Serialize
Generate ‘serde::Serialize’ code for the generated structures.
Deserialize
Generate ‘serde::Deserialize’ code for the generated structures.
Eq
Generate Eq
code for the generated structures.
PartialEq
Generate PartialEq
code for the generated structures.
All
Generate code for all supported derives for the generated structures.
Trait Implementations§
impl Eq for Derive
impl StructuralPartialEq for Derive
Auto Trait Implementations§
impl Freeze for Derive
impl RefUnwindSafe for Derive
impl Send for Derive
impl Sync for Derive
impl Unpin for Derive
impl UnwindSafe for Derive
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