Struct discord_cassandra_cpp::TableMeta
source · [−]pub struct TableMeta(_);
Expand description
Table metadata
Implementations
sourceimpl TableMeta
impl TableMeta
sourcepub fn field_iter(&mut self) -> FieldIteratorⓘNotable traits for FieldIteratorimpl Iterator for FieldIterator type Item = Field;
pub fn field_iter(&mut self) -> FieldIteratorⓘNotable traits for FieldIteratorimpl Iterator for FieldIterator type Item = Field;
returns an iterator over the fields of this table
sourcepub fn columns_iter(&self) -> ColumnIteratorⓘNotable traits for ColumnIteratorimpl Iterator for ColumnIterator type Item = ColumnMeta;
pub fn columns_iter(&self) -> ColumnIteratorⓘNotable traits for ColumnIteratorimpl Iterator for ColumnIterator type Item = ColumnMeta;
An iterator over the columns in this table
sourcepub fn column_by_name(&self, name: &str) -> ColumnMeta
pub fn column_by_name(&self, name: &str) -> ColumnMeta
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
pub fn column(&self, index: usize) -> ColumnMeta
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>
pub fn partition_key(&self, index: usize) -> Option<ColumnMeta>
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>
pub fn cluster_key(&self, index: usize) -> Option<ColumnMeta>
Gets the clustering key column metadata for the provided index.
sourcepub fn field_by_name(&self, name: &str) -> Option<Value>
pub fn field_by_name(&self, name: &str) -> Option<Value>
Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “tables” metadata table.
sourcepub fn materialized_view_count(&self) -> usize
pub fn materialized_view_count(&self) -> usize
Gets the total number of materialized views for the table.
sourcepub fn materialized_view(&self, index: usize) -> Option<MaterializedViewMeta>
pub fn materialized_view(&self, index: usize) -> Option<MaterializedViewMeta>
Gets the materialized view metadata for the provided index.
sourcepub fn materialized_view_by_name(
&self,
name: &str
) -> Option<MaterializedViewMeta>
pub fn materialized_view_by_name(
&self,
name: &str
) -> Option<MaterializedViewMeta>
Gets the materialized view metadata for the provided name.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TableMeta
impl !Send for TableMeta
impl !Sync for TableMeta
impl Unpin for TableMeta
impl UnwindSafe for TableMeta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more