pub struct TableMeta<'a>(/* private fields */);
Expand description
Table metadata
Implementations§
Source§impl<'a> TableMeta<'a>
impl<'a> TableMeta<'a>
Sourcepub fn field_iter(&self) -> FieldIterator<'a>
pub fn field_iter(&self) -> FieldIterator<'a>
returns an iterator over the fields of this table
Sourcepub fn columns_iter(&self) -> ColumnIterator<'a>
pub fn columns_iter(&self) -> ColumnIterator<'a>
An iterator over the columns in this table
Sourcepub fn column_by_name(&self, name: &str) -> ColumnMeta<'a>
pub fn column_by_name(&self, name: &str) -> ColumnMeta<'a>
Gets the column metadata for the provided column name.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Gets the total number of columns for the table.
Sourcepub fn column(&self, index: usize) -> ColumnMeta<'a>
pub fn column(&self, index: usize) -> ColumnMeta<'a>
Gets the column metadata for the provided index.
Sourcepub fn partition_key_count(&self) -> usize
pub fn partition_key_count(&self) -> usize
Gets the number of columns for the table’s partition key.
Sourcepub fn partition_key(&self, index: usize) -> Option<ColumnMeta<'a>>
pub fn partition_key(&self, index: usize) -> Option<ColumnMeta<'a>>
Gets the partition key column metadata for the provided index.
Sourcepub fn clustering_key_count(&self) -> usize
pub fn clustering_key_count(&self) -> usize
Gets the number of columns for the table’s clustering key
Sourcepub fn cluster_key(&self, index: usize) -> Option<ColumnMeta<'a>>
pub fn cluster_key(&self, index: usize) -> Option<ColumnMeta<'a>>
Gets the clustering key column metadata for the provided index.
Sourcepub fn field_by_name(&self, name: &str) -> Option<Value<'a>>
pub fn field_by_name(&self, name: &str) -> Option<Value<'a>>
Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “tables” metadata table.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TableMeta<'a>
impl<'a> RefUnwindSafe for TableMeta<'a>
impl<'a> !Send for TableMeta<'a>
impl<'a> !Sync for TableMeta<'a>
impl<'a> Unpin for TableMeta<'a>
impl<'a> UnwindSafe for TableMeta<'a>
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