Enum atmosphere::Column
source · pub enum Column<T>where
T: Table,{
PrimaryKey(&'static PrimaryKey<T>),
ForeignKey(&'static ForeignKey<T>),
Data(&'static DataColumn<T>),
Timestamp(&'static TimestampColumn<T>),
}Expand description
An enum that encapsulates different column types of a table.
Variants§
PrimaryKey(&'static PrimaryKey<T>)
A primary key
ForeignKey(&'static ForeignKey<T>)
A foreign key
Data(&'static DataColumn<T>)
A data column
Timestamp(&'static TimestampColumn<T>)
A timestamp column
Implementations§
Trait Implementations§
source§impl<T> PartialEq for Column<T>
impl<T> PartialEq for Column<T>
impl<T> Copy for Column<T>
impl<T> Eq for Column<T>
impl<T> StructuralEq for Column<T>where
T: Table,
impl<T> StructuralPartialEq for Column<T>where
T: Table,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Column<T>where
T: RefUnwindSafe,
impl<T> Send for Column<T>where
T: Sync,
impl<T> Sync for Column<T>where
T: Sync,
impl<T> Unpin for Column<T>
impl<T> UnwindSafe for Column<T>where
T: RefUnwindSafe,
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.