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
impl StructuralPartialEq for SchemaDefinition
Auto Trait Implementations§
impl Freeze for SchemaDefinition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more