Struct aws_sdk_keyspaces::model::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
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
sourceimpl 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.
sourceimpl SchemaDefinition
impl SchemaDefinition
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SchemaDefinition
Trait Implementations
sourceimpl Clone for SchemaDefinition
impl Clone for SchemaDefinition
sourcefn clone(&self) -> SchemaDefinition
fn clone(&self) -> SchemaDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SchemaDefinition
impl Debug for SchemaDefinition
sourceimpl PartialEq<SchemaDefinition> for SchemaDefinition
impl PartialEq<SchemaDefinition> for SchemaDefinition
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SchemaDefinition) -> bool
fn ne(&self, other: &SchemaDefinition) -> bool
This method tests for !=
.
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
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more