pub struct ScopedPartitionV1 { /* private fields */ }Expand description
One lineage-scoped complete partition key.
Implementations§
Source§impl ScopedPartitionV1
impl ScopedPartitionV1
Sourcepub const fn new(lineage: ContractLineage, partition_key: PartitionKey) -> Self
pub const fn new(lineage: ContractLineage, partition_key: PartitionKey) -> Self
Constructs a scoped partition identity.
Sourcepub fn canonical_key(&self) -> Vec<u8> ⓘ
pub fn canonical_key(&self) -> Vec<u8> ⓘ
Returns the canonical comparison key.
Sourcepub const fn lineage(&self) -> &ContractLineage
pub const fn lineage(&self) -> &ContractLineage
Returns the exact contract lineage.
Sourcepub const fn partition_key(&self) -> &PartitionKey
pub const fn partition_key(&self) -> &PartitionKey
Returns the complete partition key.
Trait Implementations§
Source§impl Clone for ScopedPartitionV1
impl Clone for ScopedPartitionV1
Source§impl Debug for ScopedPartitionV1
impl Debug for ScopedPartitionV1
impl Eq for ScopedPartitionV1
Source§impl PartialEq for ScopedPartitionV1
impl PartialEq for ScopedPartitionV1
impl StructuralPartialEq for ScopedPartitionV1
Auto Trait Implementations§
impl Freeze for ScopedPartitionV1
impl RefUnwindSafe for ScopedPartitionV1
impl Send for ScopedPartitionV1
impl Sync for ScopedPartitionV1
impl Unpin for ScopedPartitionV1
impl UnsafeUnpin for ScopedPartitionV1
impl UnwindSafe for ScopedPartitionV1
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