pub struct PartitionKey { /* private fields */ }Expand description
A composite partition key.
Implementations§
Source§impl PartitionKey
impl PartitionKey
Sourcepub fn new(values: Vec<PartitionValue>) -> Self
pub fn new(values: Vec<PartitionValue>) -> Self
Create a partition key from key components.
Sourcepub fn values(&self) -> &[PartitionValue]
pub fn values(&self) -> &[PartitionValue]
Return the key components in partition-column order.
Trait Implementations§
Source§impl Clone for PartitionKey
impl Clone for PartitionKey
Source§fn clone(&self) -> PartitionKey
fn clone(&self) -> PartitionKey
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 PartitionKey
impl Debug for PartitionKey
impl Eq for PartitionKey
Source§impl Hash for PartitionKey
impl Hash for PartitionKey
Source§impl PartialEq for PartitionKey
impl PartialEq for PartitionKey
impl StructuralPartialEq for PartitionKey
Auto Trait Implementations§
impl Freeze for PartitionKey
impl RefUnwindSafe for PartitionKey
impl Send for PartitionKey
impl Sync for PartitionKey
impl Unpin for PartitionKey
impl UnsafeUnpin for PartitionKey
impl UnwindSafe for PartitionKey
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