pub enum DbDefault {
Now,
Int(i64),
Bool(bool),
Text(&'static str),
}Expand description
A server-side column default (used by migrations and inserts).
Variants§
Now
Current timestamp at insert time (auto_now_add).
Int(i64)
A literal SQL-neutral value.
Bool(bool)
A literal boolean.
Text(&'static str)
A literal string.
Trait Implementations§
impl Copy for DbDefault
impl StructuralPartialEq for DbDefault
Auto Trait Implementations§
impl Freeze for DbDefault
impl RefUnwindSafe for DbDefault
impl Send for DbDefault
impl Sync for DbDefault
impl Unpin for DbDefault
impl UnsafeUnpin for DbDefault
impl UnwindSafe for DbDefault
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