pub struct CreateKeyspaceStatement {
pub if_not_exists: bool,
pub keyspace: Name,
pub options: KeyspaceOpts,
}
Fields§
§if_not_exists: bool
§keyspace: Name
§options: KeyspaceOpts
Trait Implementations§
Source§impl Clone for CreateKeyspaceStatement
impl Clone for CreateKeyspaceStatement
Source§fn clone(&self) -> CreateKeyspaceStatement
fn clone(&self) -> CreateKeyspaceStatement
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 CreateKeyspaceStatement
impl<'a> CustomToTokens<'a> for CreateKeyspaceStatement
Source§impl Debug for CreateKeyspaceStatement
impl Debug for CreateKeyspaceStatement
Source§impl Display for CreateKeyspaceStatement
impl Display for CreateKeyspaceStatement
Source§impl From<CreateKeyspaceStatement> for DataDefinitionStatement
impl From<CreateKeyspaceStatement> for DataDefinitionStatement
Source§fn from(original: CreateKeyspaceStatement) -> DataDefinitionStatement
fn from(original: CreateKeyspaceStatement) -> DataDefinitionStatement
Converts to this type from the input type.
Source§impl From<CreateKeyspaceStatement> for Statement
impl From<CreateKeyspaceStatement> for Statement
Source§fn from(v: CreateKeyspaceStatement) -> Self
fn from(v: CreateKeyspaceStatement) -> Self
Converts to this type from the input type.
Source§impl FromStr for CreateKeyspaceStatement
impl FromStr for CreateKeyspaceStatement
Source§impl 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) -> Selfwhere
Self: Sized,
fn with_durable_writes(self, durable_writes: bool) -> Selfwhere
Self: Sized,
fn get_replication(&self) -> &Replication
fn get_durable_writes(&self) -> Option<bool>
Source§impl Parse for CreateKeyspaceStatement
impl Parse for CreateKeyspaceStatement
type Output = CreateKeyspaceStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for CreateKeyspaceStatement
impl PartialEq for CreateKeyspaceStatement
Source§fn eq(&self, other: &CreateKeyspaceStatement) -> bool
fn eq(&self, other: &CreateKeyspaceStatement) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl ToTokens for CreateKeyspaceStatement
impl ToTokens for CreateKeyspaceStatement
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<CreateKeyspaceStatement> for Statement
impl TryInto<CreateKeyspaceStatement> for Statement
impl Eq for CreateKeyspaceStatement
impl StructuralPartialEq for CreateKeyspaceStatement
Auto Trait Implementations§
impl Freeze for CreateKeyspaceStatement
impl RefUnwindSafe for CreateKeyspaceStatement
impl Send for CreateKeyspaceStatement
impl Sync for CreateKeyspaceStatement
impl Unpin for CreateKeyspaceStatement
impl UnwindSafe for CreateKeyspaceStatement
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