Struct aws_sdk_keyspaces::model::schema_definition::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for SchemaDefinition
Implementations
sourceimpl Builder
impl Builder
sourcepub fn all_columns(self, input: ColumnDefinition) -> Self
pub fn all_columns(self, input: ColumnDefinition) -> Self
Appends an item to all_columns
.
To override the contents of this collection use set_all_columns
.
The regular columns of the table.
sourcepub fn set_all_columns(self, input: Option<Vec<ColumnDefinition>>) -> Self
pub fn set_all_columns(self, input: Option<Vec<ColumnDefinition>>) -> Self
The regular columns of the table.
sourcepub fn partition_keys(self, input: PartitionKey) -> Self
pub fn partition_keys(self, input: PartitionKey) -> Self
Appends an item to partition_keys
.
To override the contents of this collection use set_partition_keys
.
The columns that are part of the partition key of the table .
sourcepub fn set_partition_keys(self, input: Option<Vec<PartitionKey>>) -> Self
pub fn set_partition_keys(self, input: Option<Vec<PartitionKey>>) -> Self
The columns that are part of the partition key of the table .
sourcepub fn clustering_keys(self, input: ClusteringKey) -> Self
pub fn clustering_keys(self, input: ClusteringKey) -> Self
Appends an item to clustering_keys
.
To override the contents of this collection use set_clustering_keys
.
The columns that are part of the clustering key of the table.
sourcepub fn set_clustering_keys(self, input: Option<Vec<ClusteringKey>>) -> Self
pub fn set_clustering_keys(self, input: Option<Vec<ClusteringKey>>) -> Self
The columns that are part of the clustering key of the table.
sourcepub fn static_columns(self, input: StaticColumn) -> Self
pub fn static_columns(self, input: StaticColumn) -> Self
Appends an item to static_columns
.
To override the contents of this collection use set_static_columns
.
The columns that have been defined as STATIC
. Static columns store values that are shared by all rows in the same partition.
sourcepub fn set_static_columns(self, input: Option<Vec<StaticColumn>>) -> Self
pub fn set_static_columns(self, input: Option<Vec<StaticColumn>>) -> Self
The columns that have been defined as STATIC
. Static columns store values that are shared by all rows in the same partition.
sourcepub fn build(self) -> SchemaDefinition
pub fn build(self) -> SchemaDefinition
Consumes the builder and constructs a SchemaDefinition
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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