#[non_exhaustive]pub enum Derive {
Serde,
}Expand description
An opt-in derive for generated types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Serde
serde::Serialize and serde::Deserialize. Typed ids serialize as
their inner value and enum variants as their database label. The
consuming crate needs serde with its derive feature, and the
serde feature of uuid, chrono, and rust_decimal where the
generated code uses them; the generated mod.rs lists them.
Implementations§
Trait Implementations§
impl Copy for Derive
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 UnsafeUnpin 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