Struct discord_cassandra_cpp::KeyspaceMeta
source · [−]pub struct KeyspaceMeta(_);
Expand description
A snapshot of the schema’s metadata.
Implementations
sourceimpl KeyspaceMeta
impl KeyspaceMeta
sourcepub fn aggregrates_iter(&self) -> AggregateIteratorⓘNotable traits for AggregateIteratorimpl Iterator for AggregateIterator type Item = AggregateMeta;
pub fn aggregrates_iter(&self) -> AggregateIteratorⓘNotable traits for AggregateIteratorimpl Iterator for AggregateIterator type Item = AggregateMeta;
Iterator over the aggregates in this keyspace
sourcepub fn fields_iter(&self) -> FieldIteratorⓘNotable traits for FieldIteratorimpl Iterator for FieldIterator type Item = Field;
pub fn fields_iter(&self) -> FieldIteratorⓘNotable traits for FieldIteratorimpl Iterator for FieldIterator type Item = Field;
Iterator over the field in this keyspace
sourcepub fn table_by_name(&self, name: &str) -> Option<TableMeta>
pub fn table_by_name(&self, name: &str) -> Option<TableMeta>
Gets the table metadata for the provided table name.
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 materialized view name.
sourcepub fn user_type_by_name(&self, name: &str) -> Option<ConstDataType>
pub fn user_type_by_name(&self, name: &str) -> Option<ConstDataType>
Gets the data type for the provided type name.
sourcepub fn get_function_by_name(
&self,
name: &str,
arguments: Vec<&str>
) -> Option<FunctionMeta>
pub fn get_function_by_name(
&self,
name: &str,
arguments: Vec<&str>
) -> Option<FunctionMeta>
Gets the function metadata for the provided function name.
sourcepub fn aggregate_by_name(
&self,
name: &str,
arguments: Vec<&str>
) -> Option<AggregateMeta>
pub fn aggregate_by_name(
&self,
name: &str,
arguments: Vec<&str>
) -> Option<AggregateMeta>
Gets the aggregate metadata for the provided aggregate name.
sourcepub fn table_iter(&mut self) -> TableIteratorⓘNotable traits for TableIteratorimpl Iterator for TableIterator type Item = TableMeta;
pub fn table_iter(&mut self) -> TableIteratorⓘNotable traits for TableIteratorimpl Iterator for TableIterator type Item = TableMeta;
Iterator over the tables in this keyspaces
sourcepub fn function_iter(&mut self) -> FunctionIteratorⓘNotable traits for FunctionIteratorimpl Iterator for FunctionIterator type Item = FunctionMeta;
pub fn function_iter(&mut self) -> FunctionIteratorⓘNotable traits for FunctionIteratorimpl Iterator for FunctionIterator type Item = FunctionMeta;
Iterator over the functions in this keyspaces
sourcepub fn user_type_iter(&mut self) -> UserTypeIteratorⓘNotable traits for UserTypeIteratorimpl Iterator for UserTypeIterator type Item = (String, Value);
pub fn user_type_iter(&mut self) -> UserTypeIteratorⓘNotable traits for UserTypeIteratorimpl Iterator for UserTypeIterator type Item = (String, Value);
Iterator over the UDTs in this keyspaces
sourcepub fn materialized_view_iter(&mut self) -> MaterializedViewIteratorⓘNotable traits for MaterializedViewIteratorimpl Iterator for MaterializedViewIterator type Item = MaterializedViewMeta;
pub fn materialized_view_iter(&mut self) -> MaterializedViewIteratorⓘNotable traits for MaterializedViewIteratorimpl Iterator for MaterializedViewIterator type Item = MaterializedViewMeta;
Iterator over the materialized views in this keyspaces
sourcepub fn field_by_name(&self, name: &str) -> Option<MetadataFieldValue>
pub fn field_by_name(&self, name: &str) -> Option<MetadataFieldValue>
Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “keyspaces” metadata table.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyspaceMeta
impl !Send for KeyspaceMeta
impl !Sync for KeyspaceMeta
impl Unpin for KeyspaceMeta
impl UnwindSafe for KeyspaceMeta
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