Struct aws_sdk_keyspaces::types::builders::SchemaDefinitionBuilder
source · #[non_exhaustive]pub struct SchemaDefinitionBuilder { /* private fields */ }
Expand description
A builder for SchemaDefinition
.
Implementations§
source§impl SchemaDefinitionBuilder
impl SchemaDefinitionBuilder
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 get_all_columns(&self) -> &Option<Vec<ColumnDefinition>>
pub fn get_all_columns(&self) -> &Option<Vec<ColumnDefinition>>
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 get_partition_keys(&self) -> &Option<Vec<PartitionKey>>
pub fn get_partition_keys(&self) -> &Option<Vec<PartitionKey>>
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 get_clustering_keys(&self) -> &Option<Vec<ClusteringKey>>
pub fn get_clustering_keys(&self) -> &Option<Vec<ClusteringKey>>
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 get_static_columns(&self) -> &Option<Vec<StaticColumn>>
pub fn get_static_columns(&self) -> &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.
sourcepub fn build(self) -> Result<SchemaDefinition, BuildError>
pub fn build(self) -> Result<SchemaDefinition, BuildError>
Consumes the builder and constructs a SchemaDefinition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SchemaDefinitionBuilder
impl Clone for SchemaDefinitionBuilder
source§fn clone(&self) -> SchemaDefinitionBuilder
fn clone(&self) -> SchemaDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchemaDefinitionBuilder
impl Debug for SchemaDefinitionBuilder
source§impl Default for SchemaDefinitionBuilder
impl Default for SchemaDefinitionBuilder
source§fn default() -> SchemaDefinitionBuilder
fn default() -> SchemaDefinitionBuilder
source§impl PartialEq for SchemaDefinitionBuilder
impl PartialEq for SchemaDefinitionBuilder
source§fn eq(&self, other: &SchemaDefinitionBuilder) -> bool
fn eq(&self, other: &SchemaDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SchemaDefinitionBuilder
Auto Trait Implementations§
impl Freeze for SchemaDefinitionBuilder
impl RefUnwindSafe for SchemaDefinitionBuilder
impl Send for SchemaDefinitionBuilder
impl Sync for SchemaDefinitionBuilder
impl Unpin for SchemaDefinitionBuilder
impl UnwindSafe for SchemaDefinitionBuilder
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> 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