Struct scylladb_parse::CreateTableStatement
source · [−]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: booltable: KeyspaceQualifiedNamecolumns: Vec<ColumnDefinition>primary_key: Option<PrimaryKey>options: Option<TableOpts>Trait Implementations
sourceimpl Clone for CreateTableStatement
impl Clone for CreateTableStatement
sourcefn clone(&self) -> CreateTableStatement
fn clone(&self) -> CreateTableStatement
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<'a> CustomToTokens<'a> for CreateTableStatement
impl<'a> CustomToTokens<'a> for CreateTableStatement
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for CreateTableStatement
impl Debug for CreateTableStatement
sourceimpl Display for CreateTableStatement
impl Display for CreateTableStatement
sourceimpl From<CreateTableStatement> for DataDefinitionStatement
impl From<CreateTableStatement> for DataDefinitionStatement
sourcefn from(original: CreateTableStatement) -> DataDefinitionStatement
fn from(original: CreateTableStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl From<CreateTableStatement> for Statement
impl From<CreateTableStatement> for Statement
sourcefn from(v: CreateTableStatement) -> Self
fn from(v: CreateTableStatement) -> Self
Converts to this type from the input type.
sourceimpl FromStr for CreateTableStatement
impl FromStr for CreateTableStatement
sourceimpl Parse for CreateTableStatement
impl Parse for CreateTableStatement
type Output = CreateTableStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<CreateTableStatement> for CreateTableStatement
impl PartialEq<CreateTableStatement> for CreateTableStatement
sourcefn eq(&self, other: &CreateTableStatement) -> bool
fn eq(&self, other: &CreateTableStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CreateTableStatement) -> bool
fn ne(&self, other: &CreateTableStatement) -> bool
This method tests for !=.
sourceimpl 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) -> Self where
Self: Sized,
fn with_clustering_order(self, clustering_order: Vec<ColumnOrder>) -> Self where
Self: Sized,
fn with_comment(self, comment: &str) -> Self where
Self: Sized,
fn with_speculative_retry(self, speculative_retry: SpeculativeRetry) -> Self where
Self: Sized,
fn with_change_data_capture(self, cdc: bool) -> Self where
Self: Sized,
fn with_additional_write_policy(
self,
speculative_retry: SpeculativeRetry
) -> Self where
Self: Sized,
fn with_gc_grace_seconds(self, gc_grace_seconds: i32) -> Self where
Self: Sized,
fn with_bloom_filter_fp_chance(self, bloom_filter_fp_chance: f32) -> Self where
Self: Sized,
fn with_default_time_to_live(self, default_time_to_live: i32) -> Self where
Self: Sized,
fn with_compaction(self, compaction: impl CompactionType) -> Self where
Self: Sized,
fn with_compression(self, compression: Compression) -> Self where
Self: Sized,
fn with_caching(self, caching: Caching) -> Self where
Self: Sized,
fn with_memtable_flush_period_in_ms(
self,
memtable_flush_period_in_ms: i32
) -> Self where
Self: Sized,
fn with_read_repair(self, read_repair: bool) -> Self where
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>
sourceimpl ToTokens for CreateTableStatement
impl ToTokens for CreateTableStatement
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourceimpl TryInto<CreateTableStatement> for Statement
impl TryInto<CreateTableStatement> for Statement
impl StructuralPartialEq for CreateTableStatement
Auto Trait Implementations
impl RefUnwindSafe for CreateTableStatement
impl Send for CreateTableStatement
impl Sync for CreateTableStatement
impl Unpin for CreateTableStatement
impl UnwindSafe for CreateTableStatement
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