Struct 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: bool§table: KeyspaceQualifiedName§columns: Vec<ColumnDefinition>§primary_key: Option<PrimaryKey>§options: Option<TableOpts>

Trait Implementations§

Source§

impl Clone for CreateTableStatement

Source§

fn clone(&self) -> CreateTableStatement

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> CustomToTokens<'a> for CreateTableStatement

Source§

fn to_tokens(&'a self, tokens: &mut TokenStream)

Source§

impl Debug for CreateTableStatement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CreateTableStatement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CreateTableStatement> for DataDefinitionStatement

Source§

fn from(original: CreateTableStatement) -> DataDefinitionStatement

Converts to this type from the input type.
Source§

impl From<CreateTableStatement> for Statement

Source§

fn from(v: CreateTableStatement) -> Self

Converts to this type from the input type.
Source§

impl FromStr for CreateTableStatement

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more
Source§

impl Parse for CreateTableStatement

Source§

impl PartialEq for CreateTableStatement

Source§

fn eq(&self, other: &CreateTableStatement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TableOptionsExt for CreateTableStatement

Source§

fn table_opts(&self) -> &Option<TableOpts>

Source§

fn table_opts_mut(&mut self) -> &mut Option<TableOpts>

Source§

fn set_compact_storage(&mut self, compact_storage: bool)

Source§

fn set_clustering_order(&mut self, clustering_order: Vec<ColumnOrder>)

Source§

fn set_comment(&mut self, comment: &str)

Source§

fn set_speculative_retry(&mut self, speculative_retry: SpeculativeRetry)

Source§

fn set_change_data_capture(&mut self, cdc: bool)

Source§

fn set_gc_grace_seconds(&mut self, gc_grace_seconds: i32)

Source§

fn set_bloom_filter_fp_chance(&mut self, bloom_filter_fp_chance: f32)

Source§

fn set_default_time_to_live(&mut self, default_time_to_live: i32)

Source§

fn set_compaction(&mut self, compaction: impl CompactionType)

Source§

fn set_compression(&mut self, compression: Compression)

Source§

fn set_caching(&mut self, caching: Caching)

Source§

fn set_memtable_flush_period_in_ms(&mut self, memtable_flush_period_in_ms: i32)

Source§

fn set_read_repair(&mut self, read_repair: bool)

Source§

fn set_additional_write_policy(&mut self, speculative_retry: SpeculativeRetry)

Source§

fn with_compact_storage(self, compact_storage: bool) -> Self
where Self: Sized,

Source§

fn with_clustering_order(self, clustering_order: Vec<ColumnOrder>) -> Self
where Self: Sized,

Source§

fn with_comment(self, comment: &str) -> Self
where Self: Sized,

Source§

fn with_speculative_retry(self, speculative_retry: SpeculativeRetry) -> Self
where Self: Sized,

Source§

fn with_change_data_capture(self, cdc: bool) -> Self
where Self: Sized,

Source§

fn with_additional_write_policy( self, speculative_retry: SpeculativeRetry, ) -> Self
where Self: Sized,

Source§

fn with_gc_grace_seconds(self, gc_grace_seconds: i32) -> Self
where Self: Sized,

Source§

fn with_bloom_filter_fp_chance(self, bloom_filter_fp_chance: f32) -> Self
where Self: Sized,

Source§

fn with_default_time_to_live(self, default_time_to_live: i32) -> Self
where Self: Sized,

Source§

fn with_compaction(self, compaction: impl CompactionType) -> Self
where Self: Sized,

Source§

fn with_compression(self, compression: Compression) -> Self
where Self: Sized,

Source§

fn with_caching(self, caching: Caching) -> Self
where Self: Sized,

Source§

fn with_memtable_flush_period_in_ms( self, memtable_flush_period_in_ms: i32, ) -> Self
where Self: Sized,

Source§

fn with_read_repair(self, read_repair: bool) -> Self
where Self: Sized,

Source§

fn get_compact_storage(&self) -> Option<&bool>

Source§

fn get_clustering_order(&self) -> Option<&Vec<ColumnOrder>>

Source§

fn get_comment(&self) -> Option<&String>

Source§

fn get_speculative_retry(&self) -> Option<&SpeculativeRetry>

Source§

fn get_change_data_capture(&self) -> Option<bool>

Source§

fn get_additional_write_policy(&self) -> Option<&SpeculativeRetry>

Source§

fn get_gc_grace_seconds(&self) -> Option<i32>

Source§

fn get_bloom_filter_fp_chance(&self) -> Option<f32>

Source§

fn get_default_time_to_live(&self) -> Option<i32>

Source§

fn get_compaction(&self) -> Option<&Compaction>

Source§

fn get_compression(&self) -> Option<&Compression>

Source§

fn get_caching(&self) -> Option<&Caching>

Source§

fn get_memtable_flush_period_in_ms(&self) -> Option<i32>

Source§

fn get_read_repair(&self) -> Option<bool>

Source§

impl ToTokens for CreateTableStatement

Source§

fn to_tokens(&self, tokens: &mut TokenStream)

Write self to the given TokenStream. Read more
Source§

fn to_token_stream(&self) -> TokenStream

Convert self directly into a TokenStream object. Read more
Source§

fn into_token_stream(self) -> TokenStream
where Self: Sized,

Convert self directly into a TokenStream object. Read more
Source§

impl TryFrom<DataDefinitionStatement> for CreateTableStatement

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: DataDefinitionStatement) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<TaggedCreateTableStatement> for CreateTableStatement

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: TaggedCreateTableStatement) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryInto<CreateTableStatement> for Statement

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<CreateTableStatement, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for CreateTableStatement

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Any for T
where T: Any,

Source§

impl<T> CloneAny for T
where T: Any + Clone,