Struct atmosphere::PrimaryKey
source · pub struct PrimaryKey<T>where
T: Table,{
pub field: &'static str,
pub sql: &'static str,
/* private fields */
}Expand description
Describes the primary key column of a table.
Fields§
§field: &'static str§sql: &'static strImplementations§
Trait Implementations§
source§impl<T> Clone for PrimaryKey<T>where
T: Table,
impl<T> Clone for PrimaryKey<T>where
T: Table,
source§fn clone(&self) -> PrimaryKey<T>
fn clone(&self) -> PrimaryKey<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 PrimaryKey<T>
impl<T> Debug for PrimaryKey<T>
source§impl<T> PartialEq for PrimaryKey<T>
impl<T> PartialEq for PrimaryKey<T>
source§fn eq(&self, other: &PrimaryKey<T>) -> bool
fn eq(&self, other: &PrimaryKey<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Copy for PrimaryKey<T>
impl<T> Eq for PrimaryKey<T>
impl<T> StructuralEq for PrimaryKey<T>where
T: Table,
impl<T> StructuralPartialEq for PrimaryKey<T>where
T: Table,
Auto Trait Implementations§
impl<T> RefUnwindSafe for PrimaryKey<T>where
T: RefUnwindSafe,
impl<T> Send for PrimaryKey<T>
impl<T> Sync for PrimaryKey<T>where
T: Sync,
impl<T> Unpin for PrimaryKey<T>where
T: Unpin,
impl<T> UnwindSafe for PrimaryKey<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.