pub struct CompositeKey { /* private fields */ }Expand description
A composite partitioning key.
Implementations§
Source§impl CompositeKey
impl CompositeKey
Sourcepub fn from_parts(parts: Vec<PartitionKey>) -> Self
pub fn from_parts(parts: Vec<PartitionKey>) -> Self
Creates a composite key from parts.
Sourcepub fn with_part(self, part: PartitionKey) -> Self
pub fn with_part(self, part: PartitionKey) -> Self
Adds a partition key part.
Sourcepub fn parts(&self) -> &[PartitionKey]
pub fn parts(&self) -> &[PartitionKey]
Returns all parts.
Trait Implementations§
Source§impl Clone for CompositeKey
impl Clone for CompositeKey
Source§fn clone(&self) -> CompositeKey
fn clone(&self) -> CompositeKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompositeKey
impl Debug for CompositeKey
Source§impl Default for CompositeKey
impl Default for CompositeKey
Source§fn default() -> CompositeKey
fn default() -> CompositeKey
Returns the “default value” for a type. Read more
Source§impl PartialEq for CompositeKey
impl PartialEq for CompositeKey
Source§fn eq(&self, other: &CompositeKey) -> bool
fn eq(&self, other: &CompositeKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CompositeKey
impl StructuralPartialEq for CompositeKey
Auto Trait Implementations§
impl Freeze for CompositeKey
impl RefUnwindSafe for CompositeKey
impl Send for CompositeKey
impl Sync for CompositeKey
impl Unpin for CompositeKey
impl UnsafeUnpin for CompositeKey
impl UnwindSafe for CompositeKey
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