pub struct WideColumnRow { /* private fields */ }Expand description
A generic wide-column row.
Implementations§
Source§impl WideColumnRow
impl WideColumnRow
Sourcepub fn new(partition_key: PartitionKey) -> WideColumnRow
pub fn new(partition_key: PartitionKey) -> WideColumnRow
Creates a row for a partition key.
Sourcepub fn with_clustering_key(self, clustering_key: ClusteringKey) -> WideColumnRow
pub fn with_clustering_key(self, clustering_key: ClusteringKey) -> WideColumnRow
Sets the clustering key.
Sourcepub fn with_column(self, name: ColumnName, value: ColumnValue) -> WideColumnRow
pub fn with_column(self, name: ColumnName, value: ColumnValue) -> WideColumnRow
Adds a column value.
Sourcepub const fn partition_key(&self) -> &PartitionKey
pub const fn partition_key(&self) -> &PartitionKey
Returns the partition key.
Sourcepub const fn clustering_key(&self) -> Option<&ClusteringKey>
pub const fn clustering_key(&self) -> Option<&ClusteringKey>
Returns the clustering key, if present.
Sourcepub fn columns(&self) -> &[(ColumnName, ColumnValue)]
pub fn columns(&self) -> &[(ColumnName, ColumnValue)]
Returns row columns.
Trait Implementations§
Source§impl Clone for WideColumnRow
impl Clone for WideColumnRow
Source§fn clone(&self) -> WideColumnRow
fn clone(&self) -> WideColumnRow
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 WideColumnRow
impl Debug for WideColumnRow
Source§impl PartialEq for WideColumnRow
impl PartialEq for WideColumnRow
Source§fn eq(&self, other: &WideColumnRow) -> bool
fn eq(&self, other: &WideColumnRow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WideColumnRow
impl StructuralPartialEq for WideColumnRow
Auto Trait Implementations§
impl Freeze for WideColumnRow
impl RefUnwindSafe for WideColumnRow
impl Send for WideColumnRow
impl Sync for WideColumnRow
impl Unpin for WideColumnRow
impl UnsafeUnpin for WideColumnRow
impl UnwindSafe for WideColumnRow
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