pub struct CreateTableStatement {
pub if_not_exists: bool,
pub table: KeyspaceQualifiedName,
pub columns: Vec<ColumnDefinition>,
pub primary_key: Option<PrimaryKey>,
pub options: Option<TableOpts>,
}
Fields§
§if_not_exists: bool
§table: KeyspaceQualifiedName
§columns: Vec<ColumnDefinition>
§primary_key: Option<PrimaryKey>
§options: Option<TableOpts>
Trait Implementations§
Source§impl Clone for CreateTableStatement
impl Clone for CreateTableStatement
Source§fn clone(&self) -> CreateTableStatement
fn clone(&self) -> CreateTableStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> CustomToTokens<'a> for CreateTableStatement
impl<'a> CustomToTokens<'a> for CreateTableStatement
Source§impl Debug for CreateTableStatement
impl Debug for CreateTableStatement
Source§impl Display for CreateTableStatement
impl Display for CreateTableStatement
Source§impl From<CreateTableStatement> for DataDefinitionStatement
impl From<CreateTableStatement> for DataDefinitionStatement
Source§fn from(original: CreateTableStatement) -> DataDefinitionStatement
fn from(original: CreateTableStatement) -> DataDefinitionStatement
Converts to this type from the input type.
Source§impl From<CreateTableStatement> for Statement
impl From<CreateTableStatement> for Statement
Source§fn from(v: CreateTableStatement) -> Self
fn from(v: CreateTableStatement) -> Self
Converts to this type from the input type.
Source§impl FromStr for CreateTableStatement
impl FromStr for CreateTableStatement
Source§impl Parse for CreateTableStatement
impl Parse for CreateTableStatement
type Output = CreateTableStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for CreateTableStatement
impl PartialEq for CreateTableStatement
Source§impl TableOptionsExt for CreateTableStatement
impl TableOptionsExt for CreateTableStatement
fn table_opts(&self) -> &Option<TableOpts>
fn table_opts_mut(&mut self) -> &mut Option<TableOpts>
fn set_compact_storage(&mut self, compact_storage: bool)
fn set_clustering_order(&mut self, clustering_order: Vec<ColumnOrder>)
fn set_comment(&mut self, comment: &str)
fn set_speculative_retry(&mut self, speculative_retry: SpeculativeRetry)
fn set_change_data_capture(&mut self, cdc: bool)
fn set_gc_grace_seconds(&mut self, gc_grace_seconds: i32)
fn set_bloom_filter_fp_chance(&mut self, bloom_filter_fp_chance: f32)
fn set_default_time_to_live(&mut self, default_time_to_live: i32)
fn set_compaction(&mut self, compaction: impl CompactionType)
fn set_compression(&mut self, compression: Compression)
fn set_caching(&mut self, caching: Caching)
fn set_memtable_flush_period_in_ms(&mut self, memtable_flush_period_in_ms: i32)
fn set_read_repair(&mut self, read_repair: bool)
fn set_additional_write_policy(&mut self, speculative_retry: SpeculativeRetry)
fn with_compact_storage(self, compact_storage: bool) -> Selfwhere
Self: Sized,
fn with_clustering_order(self, clustering_order: Vec<ColumnOrder>) -> Selfwhere
Self: Sized,
fn with_comment(self, comment: &str) -> Selfwhere
Self: Sized,
fn with_speculative_retry(self, speculative_retry: SpeculativeRetry) -> Selfwhere
Self: Sized,
fn with_change_data_capture(self, cdc: bool) -> Selfwhere
Self: Sized,
fn with_additional_write_policy(
self,
speculative_retry: SpeculativeRetry,
) -> Selfwhere
Self: Sized,
fn with_gc_grace_seconds(self, gc_grace_seconds: i32) -> Selfwhere
Self: Sized,
fn with_bloom_filter_fp_chance(self, bloom_filter_fp_chance: f32) -> Selfwhere
Self: Sized,
fn with_default_time_to_live(self, default_time_to_live: i32) -> Selfwhere
Self: Sized,
fn with_compaction(self, compaction: impl CompactionType) -> Selfwhere
Self: Sized,
fn with_compression(self, compression: Compression) -> Selfwhere
Self: Sized,
fn with_caching(self, caching: Caching) -> Selfwhere
Self: Sized,
fn with_memtable_flush_period_in_ms(
self,
memtable_flush_period_in_ms: i32,
) -> Selfwhere
Self: Sized,
fn with_read_repair(self, read_repair: bool) -> Selfwhere
Self: Sized,
fn get_compact_storage(&self) -> Option<&bool>
fn get_clustering_order(&self) -> Option<&Vec<ColumnOrder>>
fn get_comment(&self) -> Option<&String>
fn get_speculative_retry(&self) -> Option<&SpeculativeRetry>
fn get_change_data_capture(&self) -> Option<bool>
fn get_additional_write_policy(&self) -> Option<&SpeculativeRetry>
fn get_gc_grace_seconds(&self) -> Option<i32>
fn get_bloom_filter_fp_chance(&self) -> Option<f32>
fn get_default_time_to_live(&self) -> Option<i32>
fn get_compaction(&self) -> Option<&Compaction>
fn get_compression(&self) -> Option<&Compression>
fn get_caching(&self) -> Option<&Caching>
fn get_memtable_flush_period_in_ms(&self) -> Option<i32>
fn get_read_repair(&self) -> Option<bool>
Source§impl ToTokens for CreateTableStatement
impl ToTokens for CreateTableStatement
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl TryInto<CreateTableStatement> for Statement
impl TryInto<CreateTableStatement> for Statement
impl StructuralPartialEq for CreateTableStatement
Auto Trait Implementations§
impl Freeze for CreateTableStatement
impl RefUnwindSafe for CreateTableStatement
impl Send for CreateTableStatement
impl Sync for CreateTableStatement
impl Unpin for CreateTableStatement
impl UnwindSafe for CreateTableStatement
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