pub enum PkValue {
Int(i64),
BigInt(i128),
Text(Box<str>),
Null,
}Expand description
Primary key value representation supporting common types
Variants§
Int(i64)
Integer value (covers most PKs)
BigInt(i128)
Big integer value
Text(Box<str>)
Text/string value
Null
NULL value (typically means “no dependency” for FKs)
Implementations§
Trait Implementations§
impl Eq for PkValue
impl StructuralPartialEq for PkValue
Auto Trait Implementations§
impl Freeze for PkValue
impl RefUnwindSafe for PkValue
impl Send for PkValue
impl Sync for PkValue
impl Unpin for PkValue
impl UnwindSafe for PkValue
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.