pub enum DefaultValue {
String(String),
Number(String),
Boolean(bool),
EnumVariant(String),
Function(FunctionCall),
}Expand description
Default value for a field.
Variants§
String(String)
A literal string value.
Number(String)
A literal number value (stored as string to preserve precision).
Boolean(bool)
A literal boolean value.
EnumVariant(String)
An enum variant name.
Function(FunctionCall)
A function call (autoincrement, uuid, now, etc.).
Trait Implementations§
Source§impl Clone for DefaultValue
impl Clone for DefaultValue
Source§fn clone(&self) -> DefaultValue
fn clone(&self) -> DefaultValue
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 DefaultValue
impl Debug for DefaultValue
Source§impl PartialEq for DefaultValue
impl PartialEq for DefaultValue
impl StructuralPartialEq for DefaultValue
Auto Trait Implementations§
impl Freeze for DefaultValue
impl RefUnwindSafe for DefaultValue
impl Send for DefaultValue
impl Sync for DefaultValue
impl Unpin for DefaultValue
impl UnsafeUnpin for DefaultValue
impl UnwindSafe for DefaultValue
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