Struct aws_sdk_keyspaces::types::SchemaDefinition
source · #[non_exhaustive]pub struct SchemaDefinition {
pub all_columns: Option<Vec<ColumnDefinition>>,
pub partition_keys: Option<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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.all_columns: Option<Vec<ColumnDefinition>>The regular columns of the table.
partition_keys: Option<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) -> Option<&[ColumnDefinition]>
pub fn all_columns(&self) -> Option<&[ColumnDefinition]>
The regular columns of the table.
sourcepub fn partition_keys(&self) -> Option<&[PartitionKey]>
pub fn partition_keys(&self) -> Option<&[PartitionKey]>
The columns that are part of the partition key of the table .
sourcepub fn clustering_keys(&self) -> Option<&[ClusteringKey]>
pub fn clustering_keys(&self) -> Option<&[ClusteringKey]>
The columns that are part of the clustering key of the table.
sourcepub fn static_columns(&self) -> Option<&[StaticColumn]>
pub fn static_columns(&self) -> Option<&[StaticColumn]>
The columns that have been defined as STATIC. Static columns store values that are shared by all rows in the same partition.
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
Returns a copy of the value. Read more
1.0.0 · 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 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
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SchemaDefinition
Auto Trait Implementations§
impl RefUnwindSafe for SchemaDefinition
impl Send for SchemaDefinition
impl Sync for SchemaDefinition
impl Unpin for SchemaDefinition
impl UnwindSafe for SchemaDefinition
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