pub enum PrimaryKeyIr {
Single(String),
Composite(Vec<String>),
}Expand description
Primary key metadata.
Variants§
Single(String)
Single-field primary key (from @id).
Composite(Vec<String>)
Composite primary key (from @@id).
Implementations§
Trait Implementations§
Source§impl Clone for PrimaryKeyIr
impl Clone for PrimaryKeyIr
Source§fn clone(&self) -> PrimaryKeyIr
fn clone(&self) -> PrimaryKeyIr
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 PrimaryKeyIr
impl Debug for PrimaryKeyIr
Source§impl PartialEq for PrimaryKeyIr
impl PartialEq for PrimaryKeyIr
impl StructuralPartialEq for PrimaryKeyIr
Auto Trait Implementations§
impl Freeze for PrimaryKeyIr
impl RefUnwindSafe for PrimaryKeyIr
impl Send for PrimaryKeyIr
impl Sync for PrimaryKeyIr
impl Unpin for PrimaryKeyIr
impl UnsafeUnpin for PrimaryKeyIr
impl UnwindSafe for PrimaryKeyIr
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