Struct scylladb_parse::CreateKeyspaceStatement
source · [−]pub struct CreateKeyspaceStatement {
pub if_not_exists: bool,
pub keyspace: Name,
pub options: KeyspaceOpts,
}Fields
if_not_exists: boolkeyspace: Nameoptions: KeyspaceOptsTrait Implementations
sourceimpl Clone for CreateKeyspaceStatement
impl Clone for CreateKeyspaceStatement
sourcefn clone(&self) -> CreateKeyspaceStatement
fn clone(&self) -> CreateKeyspaceStatement
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 CreateKeyspaceStatement
impl<'a> CustomToTokens<'a> for CreateKeyspaceStatement
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for CreateKeyspaceStatement
impl Debug for CreateKeyspaceStatement
sourceimpl Display for CreateKeyspaceStatement
impl Display for CreateKeyspaceStatement
sourceimpl From<CreateKeyspaceStatement> for DataDefinitionStatement
impl From<CreateKeyspaceStatement> for DataDefinitionStatement
sourcefn from(original: CreateKeyspaceStatement) -> DataDefinitionStatement
fn from(original: CreateKeyspaceStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl From<CreateKeyspaceStatement> for Statement
impl From<CreateKeyspaceStatement> for Statement
sourcefn from(v: CreateKeyspaceStatement) -> Self
fn from(v: CreateKeyspaceStatement) -> Self
Converts to this type from the input type.
sourceimpl FromStr for CreateKeyspaceStatement
impl FromStr for CreateKeyspaceStatement
sourceimpl KeyspaceOptionsExt for CreateKeyspaceStatement
impl KeyspaceOptionsExt for CreateKeyspaceStatement
fn keyspace_opts(&self) -> &KeyspaceOpts
fn keyspace_opts_mut(&mut self) -> &mut KeyspaceOpts
fn set_replication(&mut self, replication: Replication)
fn set_durable_writes(&mut self, durable_writes: bool)
fn with_replication(self, replication: Replication) -> Self where
Self: Sized,
fn with_durable_writes(self, durable_writes: bool) -> Self where
Self: Sized,
fn get_replication(&self) -> &Replication
fn get_durable_writes(&self) -> Option<bool>
sourceimpl Parse for CreateKeyspaceStatement
impl Parse for CreateKeyspaceStatement
type Output = CreateKeyspaceStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<CreateKeyspaceStatement> for CreateKeyspaceStatement
impl PartialEq<CreateKeyspaceStatement> for CreateKeyspaceStatement
sourcefn eq(&self, other: &CreateKeyspaceStatement) -> bool
fn eq(&self, other: &CreateKeyspaceStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CreateKeyspaceStatement) -> bool
fn ne(&self, other: &CreateKeyspaceStatement) -> bool
This method tests for !=.
sourceimpl ToTokens for CreateKeyspaceStatement
impl ToTokens for CreateKeyspaceStatement
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<CreateKeyspaceStatement> for Statement
impl TryInto<CreateKeyspaceStatement> for Statement
impl Eq for CreateKeyspaceStatement
impl StructuralEq for CreateKeyspaceStatement
impl StructuralPartialEq for CreateKeyspaceStatement
Auto Trait Implementations
impl RefUnwindSafe for CreateKeyspaceStatement
impl Send for CreateKeyspaceStatement
impl Sync for CreateKeyspaceStatement
impl Unpin for CreateKeyspaceStatement
impl UnwindSafe for CreateKeyspaceStatement
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