Struct aws_sdk_keyspaces::types::SchemaDefinition
source · #[non_exhaustive]pub struct SchemaDefinition {
pub all_columns: Vec<ColumnDefinition>,
pub partition_keys: Vec<PartitionKey>,
pub clustering_keys: Option<Vec<ClusteringKey>>,
pub static_columns: Option<Vec<StaticColumn>>,
}
Expand description
Describes the schema of the table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.all_columns: Vec<ColumnDefinition>
The regular columns of the table.
partition_keys: Vec<PartitionKey>
The columns that are part of the partition key of the table .
clustering_keys: Option<Vec<ClusteringKey>>
The columns that are part of the clustering key of the table.
static_columns: Option<Vec<StaticColumn>>
The columns that have been defined as STATIC
. Static columns store values that are shared by all rows in the same partition.
Implementations§
source§impl SchemaDefinition
impl SchemaDefinition
sourcepub fn all_columns(&self) -> &[ColumnDefinition]
pub fn all_columns(&self) -> &[ColumnDefinition]
The regular columns of the table.
sourcepub fn partition_keys(&self) -> &[PartitionKey]
pub fn partition_keys(&self) -> &[PartitionKey]
The columns that are part of the partition key of the table .
sourcepub fn clustering_keys(&self) -> &[ClusteringKey]
pub fn clustering_keys(&self) -> &[ClusteringKey]
The columns that are part of the clustering key of the table.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .clustering_keys.is_none()
.
sourcepub fn static_columns(&self) -> &[StaticColumn]
pub fn static_columns(&self) -> &[StaticColumn]
The columns that have been defined as STATIC
. Static columns store values that are shared by all rows in the same partition.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .static_columns.is_none()
.
source§impl SchemaDefinition
impl SchemaDefinition
sourcepub fn builder() -> SchemaDefinitionBuilder
pub fn builder() -> SchemaDefinitionBuilder
Creates a new builder-style object to manufacture SchemaDefinition
.
Trait Implementations§
source§impl Clone for SchemaDefinition
impl Clone for SchemaDefinition
source§fn clone(&self) -> SchemaDefinition
fn clone(&self) -> SchemaDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchemaDefinition
impl Debug for SchemaDefinition
source§impl PartialEq for SchemaDefinition
impl PartialEq for SchemaDefinition
source§fn eq(&self, other: &SchemaDefinition) -> bool
fn eq(&self, other: &SchemaDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.