pub enum AlterAction {
AddColumn {
if_not_exists: bool,
column: ColumnDef,
},
DropColumn {
if_exists: bool,
name: Ident,
},
RenameTo(ObjectName),
RenameColumn {
if_exists: bool,
from: Ident,
to: Ident,
},
SetOptions(Vec<SqlOption>),
SetDefaultCollate(Expr),
AlterColumn {
if_exists: bool,
name: Ident,
action: AlterColumnAction,
},
}Variants§
AddColumn
DropColumn
RenameTo(ObjectName)
RenameColumn
SetOptions(Vec<SqlOption>)
SetDefaultCollate(Expr)
AlterColumn
Trait Implementations§
Source§impl Clone for AlterAction
impl Clone for AlterAction
Source§impl Debug for AlterAction
impl Debug for AlterAction
Source§impl<'de> Deserialize<'de> for AlterAction
impl<'de> Deserialize<'de> for AlterAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AlterAction
Source§impl Hash for AlterAction
impl Hash for AlterAction
Source§impl PartialEq for AlterAction
impl PartialEq for AlterAction
Source§impl Serialize for AlterAction
impl Serialize for AlterAction
impl StructuralPartialEq for AlterAction
Auto Trait Implementations§
impl Forget for AlterAction
impl Freeze for AlterActionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<Ident>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const Query is !null: Freeze,
PhantomData<Query>: Freeze,
PhantomData<CaseWhen>: Freeze,
PhantomData<StructExprField>: Freeze,
*const Function is !null: Freeze,
PhantomData<Function>: Freeze,
PhantomData<(Ident, Expr)>: Freeze,
PhantomData<SqlOption>: Freeze,
impl Move for AlterAction
impl RefUnwindSafe for AlterAction
impl Send for AlterAction
impl Sync for AlterAction
impl Unpin for AlterAction
impl UnsafeUnpin for AlterActionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
PhantomData<CaseWhen>: UnsafeUnpin,
PhantomData<StructExprField>: UnsafeUnpin,
*const Function is !null: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
PhantomData<(Ident, Expr)>: UnsafeUnpin,
PhantomData<SqlOption>: UnsafeUnpin,
impl UnwindSafe for AlterActionwhere
RawVecInner: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.