pub enum DbDefault {
Now,
Int(i64),
Bool(bool),
Text(String),
}Expand description
Server-side column default (serde mirror of siderite_orm::DbDefault).
Variants§
Now
Current timestamp at insert time (auto_now_add).
Int(i64)
A literal integer.
Bool(bool)
A literal boolean.
Text(String)
A literal string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DbDefault
impl<'de> Deserialize<'de> for DbDefault
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DbDefault> for DbDefault
impl From<DbDefault> for DbDefault
Source§fn from(value: OrmDbDefault) -> Self
fn from(value: OrmDbDefault) -> Self
Converts to this type from the input type.
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