pub enum DefaultValue {
Null,
Boolean(bool),
Integer(i64),
Float(f64),
String(String),
Expression(String),
}Expand description
Default value for a column.
Variants§
Null
NULL default.
Boolean(bool)
Boolean default.
Integer(i64)
Integer default.
Float(f64)
Float default.
String(String)
String default.
Expression(String)
Raw SQL expression (e.g., CURRENT_TIMESTAMP).
Implementations§
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 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