Struct atmosphere::TimestampColumn
source · pub struct TimestampColumn<T>where
T: Table,{
pub kind: TimestampKind,
pub field: &'static str,
pub sql: &'static str,
/* private fields */
}Expand description
Specifies a timestamp column, typically used for tracking creation, update, or deletion times.
Fields§
§kind: TimestampKindThe type of this timestamp column
field: &'static strThe rust field name of the model
sql: &'static strThe associated sql column name
Implementations§
source§impl<T> TimestampColumn<T>where
T: Table,
impl<T> TimestampColumn<T>where
T: Table,
pub const fn new( kind: TimestampKind, field: &'static str, sql: &'static str ) -> TimestampColumn<T>
Trait Implementations§
source§impl<T> Clone for TimestampColumn<T>where
T: Table,
impl<T> Clone for TimestampColumn<T>where
T: Table,
source§fn clone(&self) -> TimestampColumn<T>
fn clone(&self) -> TimestampColumn<T>
Returns a copy 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<T> Debug for TimestampColumn<T>
impl<T> Debug for TimestampColumn<T>
source§impl<T> PartialEq for TimestampColumn<T>
impl<T> PartialEq for TimestampColumn<T>
source§fn eq(&self, other: &TimestampColumn<T>) -> bool
fn eq(&self, other: &TimestampColumn<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Copy for TimestampColumn<T>
impl<T> Eq for TimestampColumn<T>
impl<T> StructuralEq for TimestampColumn<T>where
T: Table,
impl<T> StructuralPartialEq for TimestampColumn<T>where
T: Table,
Auto Trait Implementations§
impl<T> RefUnwindSafe for TimestampColumn<T>where
T: RefUnwindSafe,
impl<T> Send for TimestampColumn<T>
impl<T> Sync for TimestampColumn<T>where
T: Sync,
impl<T> Unpin for TimestampColumn<T>where
T: Unpin,
impl<T> UnwindSafe for TimestampColumn<T>where
T: UnwindSafe,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.