pub struct PrimaryKey { /* private fields */ }
Expand description
Marks a Column as a Primary Key. It is an Error to have more than one Primary Key per Table (Error::MultiplePrimaryKeys).
Implementations§
Source§impl PrimaryKey
impl PrimaryKey
pub fn new( sort_order: Order, on_conflict: OnConflict, autoincrement: bool, ) -> Self
pub fn set_sort_order(self, ord: Order) -> Self
pub fn set_on_conflict(self, on_conf: OnConflict) -> Self
pub fn set_autoincrement(self, auto_inc: bool) -> Self
Trait Implementations§
Source§impl Clone for PrimaryKey
impl Clone for PrimaryKey
Source§fn clone(&self) -> PrimaryKey
fn clone(&self) -> PrimaryKey
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 Debug for PrimaryKey
impl Debug for PrimaryKey
Source§impl Default for PrimaryKey
impl Default for PrimaryKey
Source§fn default() -> PrimaryKey
fn default() -> PrimaryKey
Returns the “default value” for a type. Read more
Source§impl PartialEq for PrimaryKey
impl PartialEq for PrimaryKey
impl Eq for PrimaryKey
impl StructuralPartialEq for PrimaryKey
Auto Trait Implementations§
impl Freeze for PrimaryKey
impl RefUnwindSafe for PrimaryKey
impl Send for PrimaryKey
impl Sync for PrimaryKey
impl Unpin for PrimaryKey
impl UnwindSafe for PrimaryKey
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