pub enum PrimaryKeyType {
PrimaryKey,
PartOfPrimaryKey,
None,
}Expand description
Indicates if and how a column participates in the primary key.
Variants§
PrimaryKey
Single-column primary key.
PartOfPrimaryKey
Member of a composite primary key.
None
Not part of the primary key.
Trait Implementations§
Source§impl Clone for PrimaryKeyType
impl Clone for PrimaryKeyType
Source§fn clone(&self) -> PrimaryKeyType
fn clone(&self) -> PrimaryKeyType
Returns a duplicate 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 PrimaryKeyType
impl Debug for PrimaryKeyType
Source§impl Default for PrimaryKeyType
impl Default for PrimaryKeyType
Source§fn default() -> PrimaryKeyType
fn default() -> PrimaryKeyType
Returns the “default value” for a type. Read more
Source§impl PartialEq for PrimaryKeyType
impl PartialEq for PrimaryKeyType
Source§impl ToTokens for PrimaryKeyType
impl ToTokens for PrimaryKeyType
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Copy for PrimaryKeyType
impl Eq for PrimaryKeyType
impl StructuralPartialEq for PrimaryKeyType
Auto Trait Implementations§
impl Freeze for PrimaryKeyType
impl RefUnwindSafe for PrimaryKeyType
impl Send for PrimaryKeyType
impl Sync for PrimaryKeyType
impl Unpin for PrimaryKeyType
impl UnwindSafe for PrimaryKeyType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.