pub enum IdentitySource {
Generated,
IntegerKey,
Document,
}Expand description
Where an inserted row’s physical document identity comes from, as its table’s columns decide it.
Variants§
Generated
The table generates the identity: a declared table without a single primary-key column, or whose key is not an integer.
IntegerKey
The table’s single integer primary-key column names the identity. Where the table maps its keys, a key in 0..KEY_IDENTITY_LIMIT is the identity; any other row takes an identity the table generates at or above that limit, which no key names.
Document
The id field of a table without declared columns names the identity, as the document API does.
Implementations§
Source§impl IdentitySource
impl IdentitySource
Sourcepub const fn accepts_supplied(self) -> bool
pub const fn accepts_supplied(self) -> bool
Whether a value the row supplies can name its identity.
Trait Implementations§
Source§impl Clone for IdentitySource
impl Clone for IdentitySource
impl Copy for IdentitySource
Source§impl Debug for IdentitySource
impl Debug for IdentitySource
impl Eq for IdentitySource
Source§impl PartialEq for IdentitySource
impl PartialEq for IdentitySource
impl StructuralPartialEq for IdentitySource
Auto Trait Implementations§
impl Freeze for IdentitySource
impl RefUnwindSafe for IdentitySource
impl Send for IdentitySource
impl Sync for IdentitySource
impl Unpin for IdentitySource
impl UnsafeUnpin for IdentitySource
impl UnwindSafe for IdentitySource
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more