Struct fdb_rl::raw_record::primary_key::RawRecordPrimaryKey
source · pub struct RawRecordPrimaryKey {
schema: RawRecordPrimaryKeySchema,
key: Tuple,
}
Expand description
Represents a RawRecord
’s primary key which is a Tuple
.
When we have a value of RawRecordPrimaryKey
, that means that
it conforms to RawRecordPrimaryKeySchema
.
Warning: This type is not meant to be public. We need to make this type public to support integration tests. Do not use this type in your code.
Fields§
§schema: RawRecordPrimaryKeySchema
§key: Tuple
Implementations§
source§impl RawRecordPrimaryKey
impl RawRecordPrimaryKey
pub(crate) fn key_ref(&self) -> &Tuple
sourcepub fn into_parts(self) -> (RawRecordPrimaryKeySchema, Tuple)
pub fn into_parts(self) -> (RawRecordPrimaryKeySchema, Tuple)
Extract primary key schema and primary key tuple from
RawRecordPrimaryKey
.
Trait Implementations§
source§impl Clone for RawRecordPrimaryKey
impl Clone for RawRecordPrimaryKey
source§fn clone(&self) -> RawRecordPrimaryKey
fn clone(&self) -> RawRecordPrimaryKey
Returns a copy 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 RawRecordPrimaryKey
impl Debug for RawRecordPrimaryKey
source§impl PartialEq<RawRecordPrimaryKey> for RawRecordPrimaryKey
impl PartialEq<RawRecordPrimaryKey> for RawRecordPrimaryKey
source§fn eq(&self, other: &RawRecordPrimaryKey) -> bool
fn eq(&self, other: &RawRecordPrimaryKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<(RawRecordPrimaryKeySchema, Tuple)> for RawRecordPrimaryKey
impl TryFrom<(RawRecordPrimaryKeySchema, Tuple)> for RawRecordPrimaryKey
source§fn try_from(
(schema, key): (RawRecordPrimaryKeySchema, Tuple)
) -> FdbResult<RawRecordPrimaryKey>
fn try_from( (schema, key): (RawRecordPrimaryKeySchema, Tuple) ) -> FdbResult<RawRecordPrimaryKey>
Performs the conversion.
impl StructuralPartialEq for RawRecordPrimaryKey
Auto Trait Implementations§
impl RefUnwindSafe for RawRecordPrimaryKey
impl Send for RawRecordPrimaryKey
impl Sync for RawRecordPrimaryKey
impl Unpin for RawRecordPrimaryKey
impl UnwindSafe for RawRecordPrimaryKey
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