pub enum DataDefinitionStatement {
Use(UseStatement),
CreateKeyspace(CreateKeyspaceStatement),
AlterKeyspace(AlterKeyspaceStatement),
DropKeyspace(DropKeyspaceStatement),
CreateTable(CreateTableStatement),
AlterTable(AlterTableStatement),
DropTable(DropTableStatement),
Truncate(TruncateStatement),
}Variants
Use(UseStatement)
CreateKeyspace(CreateKeyspaceStatement)
AlterKeyspace(AlterKeyspaceStatement)
DropKeyspace(DropKeyspaceStatement)
CreateTable(CreateTableStatement)
AlterTable(AlterTableStatement)
DropTable(DropTableStatement)
Truncate(TruncateStatement)
Trait Implementations
sourceimpl Clone for DataDefinitionStatement
impl Clone for DataDefinitionStatement
sourcefn clone(&self) -> DataDefinitionStatement
fn clone(&self) -> DataDefinitionStatement
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 DataDefinitionStatement
impl<'a> CustomToTokens<'a> for DataDefinitionStatement
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for DataDefinitionStatement
impl Debug for DataDefinitionStatement
sourceimpl Display for DataDefinitionStatement
impl Display for DataDefinitionStatement
sourceimpl From<AlterKeyspaceStatement> for DataDefinitionStatement
impl From<AlterKeyspaceStatement> for DataDefinitionStatement
sourcefn from(original: AlterKeyspaceStatement) -> DataDefinitionStatement
fn from(original: AlterKeyspaceStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl From<AlterTableStatement> for DataDefinitionStatement
impl From<AlterTableStatement> for DataDefinitionStatement
sourcefn from(original: AlterTableStatement) -> DataDefinitionStatement
fn from(original: AlterTableStatement) -> DataDefinitionStatement
Converts to this type from the input type.
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<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<DataDefinitionStatement> for Statement
impl From<DataDefinitionStatement> for Statement
sourcefn from(original: DataDefinitionStatement) -> Statement
fn from(original: DataDefinitionStatement) -> Statement
Converts to this type from the input type.
sourceimpl From<DropKeyspaceStatement> for DataDefinitionStatement
impl From<DropKeyspaceStatement> for DataDefinitionStatement
sourcefn from(original: DropKeyspaceStatement) -> DataDefinitionStatement
fn from(original: DropKeyspaceStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl From<DropTableStatement> for DataDefinitionStatement
impl From<DropTableStatement> for DataDefinitionStatement
sourcefn from(original: DropTableStatement) -> DataDefinitionStatement
fn from(original: DropTableStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl From<TruncateStatement> for DataDefinitionStatement
impl From<TruncateStatement> for DataDefinitionStatement
sourcefn from(original: TruncateStatement) -> DataDefinitionStatement
fn from(original: TruncateStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl From<UseStatement> for DataDefinitionStatement
impl From<UseStatement> for DataDefinitionStatement
sourcefn from(original: UseStatement) -> DataDefinitionStatement
fn from(original: UseStatement) -> DataDefinitionStatement
Converts to this type from the input type.
sourceimpl FromStr for DataDefinitionStatement
impl FromStr for DataDefinitionStatement
sourceimpl Parse for DataDefinitionStatement
impl Parse for DataDefinitionStatement
type Output = DataDefinitionStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<DataDefinitionStatement> for DataDefinitionStatement
impl PartialEq<DataDefinitionStatement> for DataDefinitionStatement
sourcefn eq(&self, other: &DataDefinitionStatement) -> bool
fn eq(&self, other: &DataDefinitionStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DataDefinitionStatement) -> bool
fn ne(&self, other: &DataDefinitionStatement) -> bool
This method tests for !=.
sourceimpl ToTokens for DataDefinitionStatement
impl ToTokens for DataDefinitionStatement
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 TryFrom<DataDefinitionStatement> for UseStatement
impl TryFrom<DataDefinitionStatement> for UseStatement
sourceimpl TryFrom<Statement> for DataDefinitionStatement
impl TryFrom<Statement> for DataDefinitionStatement
impl StructuralPartialEq for DataDefinitionStatement
Auto Trait Implementations
impl RefUnwindSafe for DataDefinitionStatement
impl Send for DataDefinitionStatement
impl Sync for DataDefinitionStatement
impl Unpin for DataDefinitionStatement
impl UnwindSafe for DataDefinitionStatement
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