pub struct NativeRecordIdentity { /* private fields */ }Expand description
A provider-assigned physical family and stable owner. The durable family number must come from a fixed format registry, never schema enumeration order.
Implementations§
Source§impl NativeRecordIdentity
impl NativeRecordIdentity
pub fn new( family: NativeRecordFamily, owner: NativeRecordOwner, ) -> VersionResult<Self>
pub fn family(self) -> NativeRecordFamily
pub fn owner(self) -> NativeRecordOwner
Sourcepub fn encode_key(
self,
components: &[ValueRef<'_>],
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>
pub fn encode_key( self, components: &[ValueRef<'_>], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Encode a complete primary key. Integer order is signed SQLite order; TEXT and BLOB order is binary byte order. NULL/REAL primary keys require a different equality contract and are rejected.
Sourcepub fn encode_prefix(
self,
components: &[ValueRef<'_>],
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>
pub fn encode_prefix( self, components: &[ValueRef<'_>], control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Encode an owner/component prefix for a bounded scan over this family and generation.
Trait Implementations§
Source§impl Clone for NativeRecordIdentity
impl Clone for NativeRecordIdentity
impl Copy for NativeRecordIdentity
Source§impl Debug for NativeRecordIdentity
impl Debug for NativeRecordIdentity
impl Eq for NativeRecordIdentity
Source§impl PartialEq for NativeRecordIdentity
impl PartialEq for NativeRecordIdentity
impl StructuralPartialEq for NativeRecordIdentity
Auto Trait Implementations§
impl Freeze for NativeRecordIdentity
impl RefUnwindSafe for NativeRecordIdentity
impl Send for NativeRecordIdentity
impl Sync for NativeRecordIdentity
impl Unpin for NativeRecordIdentity
impl UnsafeUnpin for NativeRecordIdentity
impl UnwindSafe for NativeRecordIdentity
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