pub enum ColumnIndexAttribute {
UnSet,
Identity,
Unique,
Indexed,
AutoInc,
PrimaryKey,
PrimaryKeyAuto,
}
Variants§
UnSet
Identity
Unique + AutoInc
Unique
Index unique
Indexed
Index no unique
AutoInc
Generate the next [Sequence]
PrimaryKey
Primary key column (implies Unique)
PrimaryKeyAuto
PrimaryKey + AutoInc
Implementations§
source§impl ColumnIndexAttribute
impl ColumnIndexAttribute
pub const fn is_unique(self) -> bool
pub const fn is_autoinc(self) -> bool
pub const fn is_primary(self) -> bool
Trait Implementations§
source§impl Clone for ColumnIndexAttribute
impl Clone for ColumnIndexAttribute
source§fn clone(&self) -> ColumnIndexAttribute
fn clone(&self) -> ColumnIndexAttribute
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 ColumnIndexAttribute
impl Debug for ColumnIndexAttribute
source§impl Default for ColumnIndexAttribute
impl Default for ColumnIndexAttribute
source§fn default() -> ColumnIndexAttribute
fn default() -> ColumnIndexAttribute
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ColumnIndexAttribute
impl<'de> Deserialize<'de> for ColumnIndexAttribute
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl Ord for ColumnIndexAttribute
impl Ord for ColumnIndexAttribute
source§fn cmp(&self, other: &ColumnIndexAttribute) -> Ordering
fn cmp(&self, other: &ColumnIndexAttribute) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ColumnIndexAttribute> for ColumnIndexAttribute
impl PartialEq<ColumnIndexAttribute> for ColumnIndexAttribute
source§fn eq(&self, other: &ColumnIndexAttribute) -> bool
fn eq(&self, other: &ColumnIndexAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ColumnIndexAttribute> for ColumnIndexAttribute
impl PartialOrd<ColumnIndexAttribute> for ColumnIndexAttribute
source§fn partial_cmp(&self, other: &ColumnIndexAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &ColumnIndexAttribute) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ColumnIndexAttribute
impl Serialize for ColumnIndexAttribute
source§impl TryFrom<u8> for ColumnIndexAttribute
impl TryFrom<u8> for ColumnIndexAttribute
impl Copy for ColumnIndexAttribute
impl Eq for ColumnIndexAttribute
impl StructuralEq for ColumnIndexAttribute
impl StructuralPartialEq for ColumnIndexAttribute
Auto Trait Implementations§
impl RefUnwindSafe for ColumnIndexAttribute
impl Send for ColumnIndexAttribute
impl Sync for ColumnIndexAttribute
impl Unpin for ColumnIndexAttribute
impl UnwindSafe for ColumnIndexAttribute
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