pub enum AlterTableActionMutation {
Show 20 variants
AddColumn {
name: String,
ty: Option<String>,
if_not_exists: bool,
not_null: bool,
default: Option<ExprIr>,
},
DropColumn {
name: String,
if_exists: bool,
},
RenameColumn {
from: String,
to: String,
},
AddForeignKey {
constraint_name: Option<String>,
to_table: ObjectId,
from_columns: Vec<String>,
to_columns: Vec<String>,
not_valid: bool,
},
AlterConstraint {
name: String,
deferrable: bool,
},
RenameConstraint {
old_name: String,
new_name: String,
},
DropConstraint {
name: String,
},
AddCheckConstraint {
constraint_name: Option<String>,
not_valid: bool,
},
AddUniqueConstraint,
AddPrimaryKeyConstraint,
AddExcludeConstraint,
SetNotNull {
column: String,
},
DropNotNull {
column: String,
},
SetType {
column: String,
ty: String,
has_using: bool,
},
SetDefault {
column: String,
default: Option<ExprIr>,
},
ValidateConstraint {
constraint_name: String,
},
AttachPartition {
child: ObjectId,
},
DetachPartition {
child: ObjectId,
},
SetStorage {
column: String,
},
SetAccessMethod,
}Variants§
AddColumn
DropColumn
RenameColumn
AddForeignKey
Fields
AlterConstraint
RenameConstraint
DropConstraint
AddCheckConstraint
AddUniqueConstraint
AddPrimaryKeyConstraint
AddExcludeConstraint
SetNotNull
DropNotNull
SetType
SetDefault
ValidateConstraint
AttachPartition
DetachPartition
SetStorage
SetAccessMethod
Trait Implementations§
Source§impl Clone for AlterTableActionMutation
impl Clone for AlterTableActionMutation
Source§fn clone(&self) -> AlterTableActionMutation
fn clone(&self) -> AlterTableActionMutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlterTableActionMutation
impl Debug for AlterTableActionMutation
Source§impl PartialEq for AlterTableActionMutation
impl PartialEq for AlterTableActionMutation
Source§fn eq(&self, other: &AlterTableActionMutation) -> bool
fn eq(&self, other: &AlterTableActionMutation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlterTableActionMutation
Auto Trait Implementations§
impl Freeze for AlterTableActionMutation
impl RefUnwindSafe for AlterTableActionMutation
impl Send for AlterTableActionMutation
impl Sync for AlterTableActionMutation
impl Unpin for AlterTableActionMutation
impl UnsafeUnpin for AlterTableActionMutation
impl UnwindSafe for AlterTableActionMutation
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more