Enum Statement

Source
pub enum Statement {
    DataDefinition(DataDefinitionStatement),
    DataManipulation(DataManipulationStatement),
    SecondaryIndex(SecondaryIndexStatement),
    MaterializedView(MaterializedViewStatement),
    Role(RoleStatement),
    Permission(PermissionStatement),
    User(UserStatement),
    UserDefinedFunction(UserDefinedFunctionStatement),
    UserDefinedType(UserDefinedTypeStatement),
    Trigger(TriggerStatement),
}

Variants§

Trait Implementations§

Source§

impl Clone for Statement

Source§

fn clone(&self) -> Statement

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 Statement

Source§

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

Source§

impl Debug for Statement

Source§

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

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

impl Display for Statement

Source§

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

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

impl From<AlterKeyspaceStatement> for Statement

Source§

fn from(v: AlterKeyspaceStatement) -> Self

Converts to this type from the input type.
Source§

impl From<AlterMaterializedViewStatement> for Statement

Source§

fn from(v: AlterMaterializedViewStatement) -> Self

Converts to this type from the input type.
Source§

impl From<AlterRoleStatement> for Statement

Source§

fn from(v: AlterRoleStatement) -> Self

Converts to this type from the input type.
Source§

impl From<AlterTableStatement> for Statement

Source§

fn from(v: AlterTableStatement) -> Self

Converts to this type from the input type.
Source§

impl From<AlterUserDefinedTypeStatement> for Statement

Source§

fn from(v: AlterUserDefinedTypeStatement) -> Self

Converts to this type from the input type.
Source§

impl From<AlterUserStatement> for Statement

Source§

fn from(v: AlterUserStatement) -> Self

Converts to this type from the input type.
Source§

impl From<BatchStatement> for Statement

Source§

fn from(v: BatchStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateAggregateFunctionStatement> for Statement

Source§

fn from(v: CreateAggregateFunctionStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateFunctionStatement> for Statement

Source§

fn from(v: CreateFunctionStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateIndexStatement> for Statement

Source§

fn from(v: CreateIndexStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateKeyspaceStatement> for Statement

Source§

fn from(v: CreateKeyspaceStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMaterializedViewStatement> for Statement

Source§

fn from(v: CreateMaterializedViewStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateRoleStatement> for Statement

Source§

fn from(v: CreateRoleStatement) -> Self

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 From<CreateTriggerStatement> for Statement

Source§

fn from(v: CreateTriggerStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateUserDefinedTypeStatement> for Statement

Source§

fn from(v: CreateUserDefinedTypeStatement) -> Self

Converts to this type from the input type.
Source§

impl From<CreateUserStatement> for Statement

Source§

fn from(v: CreateUserStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DataDefinitionStatement> for Statement

Source§

fn from(original: DataDefinitionStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<DataManipulationStatement> for Statement

Source§

fn from(original: DataManipulationStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<DeleteStatement> for Statement

Source§

fn from(v: DeleteStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropAggregateFunctionStatement> for Statement

Source§

fn from(v: DropAggregateFunctionStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropFunctionStatement> for Statement

Source§

fn from(v: DropFunctionStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropIndexStatement> for Statement

Source§

fn from(v: DropIndexStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropKeyspaceStatement> for Statement

Source§

fn from(v: DropKeyspaceStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropMaterializedViewStatement> for Statement

Source§

fn from(v: DropMaterializedViewStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropRoleStatement> for Statement

Source§

fn from(v: DropRoleStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropTableStatement> for Statement

Source§

fn from(v: DropTableStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropTriggerStatement> for Statement

Source§

fn from(v: DropTriggerStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropUserDefinedTypeStatement> for Statement

Source§

fn from(v: DropUserDefinedTypeStatement) -> Self

Converts to this type from the input type.
Source§

impl From<DropUserStatement> for Statement

Source§

fn from(v: DropUserStatement) -> Self

Converts to this type from the input type.
Source§

impl From<GrantPermissionStatement> for Statement

Source§

fn from(v: GrantPermissionStatement) -> Self

Converts to this type from the input type.
Source§

impl From<GrantRoleStatement> for Statement

Source§

fn from(v: GrantRoleStatement) -> Self

Converts to this type from the input type.
Source§

impl From<InsertStatement> for Statement

Source§

fn from(v: InsertStatement) -> Self

Converts to this type from the input type.
Source§

impl From<ListPermissionsStatement> for Statement

Source§

fn from(v: ListPermissionsStatement) -> Self

Converts to this type from the input type.
Source§

impl From<ListRolesStatement> for Statement

Source§

fn from(v: ListRolesStatement) -> Self

Converts to this type from the input type.
Source§

impl From<ListUsersStatement> for Statement

Source§

fn from(v: ListUsersStatement) -> Self

Converts to this type from the input type.
Source§

impl From<MaterializedViewStatement> for Statement

Source§

fn from(original: MaterializedViewStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<PermissionStatement> for Statement

Source§

fn from(original: PermissionStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<RevokePermissionStatement> for Statement

Source§

fn from(v: RevokePermissionStatement) -> Self

Converts to this type from the input type.
Source§

impl From<RevokeRoleStatement> for Statement

Source§

fn from(v: RevokeRoleStatement) -> Self

Converts to this type from the input type.
Source§

impl From<RoleStatement> for Statement

Source§

fn from(original: RoleStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<SecondaryIndexStatement> for Statement

Source§

fn from(original: SecondaryIndexStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<SelectStatement> for Statement

Source§

fn from(v: SelectStatement) -> Self

Converts to this type from the input type.
Source§

impl From<TriggerStatement> for Statement

Source§

fn from(original: TriggerStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<TruncateStatement> for Statement

Source§

fn from(v: TruncateStatement) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStatement> for Statement

Source§

fn from(v: UpdateStatement) -> Self

Converts to this type from the input type.
Source§

impl From<UseStatement> for Statement

Source§

fn from(v: UseStatement) -> Self

Converts to this type from the input type.
Source§

impl From<UserDefinedFunctionStatement> for Statement

Source§

fn from(original: UserDefinedFunctionStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<UserDefinedTypeStatement> for Statement

Source§

fn from(original: UserDefinedTypeStatement) -> Statement

Converts to this type from the input type.
Source§

impl From<UserStatement> for Statement

Source§

fn from(original: UserStatement) -> Statement

Converts to this type from the input type.
Source§

impl FromStr for Statement

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 KeyspaceExt for Statement

Source§

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

Source§

fn set_keyspace(&mut self, keyspace: impl Into<Name>)

Source§

fn with_keyspace(self, keyspace: impl Into<Name>) -> Self
where Self: Sized,

Source§

impl Parse for Statement

Source§

impl PartialEq for Statement

Source§

fn eq(&self, other: &Statement) -> 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 ToTokens for Statement

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<Statement> for DataDefinitionStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for DataManipulationStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for MaterializedViewStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for PermissionStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for RoleStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for SecondaryIndexStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for TriggerStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for UserDefinedFunctionStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for UserDefinedTypeStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<Statement> for UserStatement

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<TaggedStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<AlterKeyspaceStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<AlterMaterializedViewStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<AlterRoleStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<AlterTableStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<AlterUserDefinedTypeStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<AlterUserStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<BatchStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateAggregateFunctionStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateFunctionStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateIndexStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateKeyspaceStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateMaterializedViewStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateRoleStatement> for Statement

Source§

type Error = Error

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

fn try_into(self) -> Result<CreateRoleStatement, 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 TryInto<CreateTriggerStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateUserDefinedTypeStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<CreateUserStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DeleteStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropAggregateFunctionStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropFunctionStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropIndexStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropKeyspaceStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropMaterializedViewStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropRoleStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropTableStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropTriggerStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropUserDefinedTypeStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<DropUserStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<GrantPermissionStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<GrantRoleStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<InsertStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<ListPermissionsStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<ListRolesStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<ListUsersStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<RevokePermissionStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<RevokeRoleStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<SelectStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<TruncateStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<UpdateStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryInto<UseStatement> for Statement

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl StructuralPartialEq for Statement

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,