pub enum AutoTimestamp {
Created,
Updated,
}Expand description
Marks a column as automatically set on insert and/or update (e.g. created_at, updated_at).
Variants§
Created
Set once when the row is inserted (e.g. created_at).
Updated
Set on insert and updated on every update (e.g. updated_at).
Trait Implementations§
Source§impl Clone for AutoTimestamp
impl Clone for AutoTimestamp
Source§fn clone(&self) -> AutoTimestamp
fn clone(&self) -> AutoTimestamp
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 AutoTimestamp
impl Debug for AutoTimestamp
Source§impl PartialEq for AutoTimestamp
impl PartialEq for AutoTimestamp
impl Copy for AutoTimestamp
impl Eq for AutoTimestamp
impl StructuralPartialEq for AutoTimestamp
Auto Trait Implementations§
impl Freeze for AutoTimestamp
impl RefUnwindSafe for AutoTimestamp
impl Send for AutoTimestamp
impl Sync for AutoTimestamp
impl Unpin for AutoTimestamp
impl UnwindSafe for AutoTimestamp
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