pub enum PostgresSqlAlterOperation {
AddColumn {
column: Box<PostgresSqlColumn>,
},
AlterColumnType {
column: PostgresSqlIdentifier,
data_type: PostgresSqlType,
using: Option<PostgresSqlExpression>,
},
SetDefault {
column: PostgresSqlIdentifier,
expression: PostgresSqlExpression,
},
DropDefault {
column: PostgresSqlIdentifier,
},
SetNotNull {
column: PostgresSqlIdentifier,
},
DropNotNull {
column: PostgresSqlIdentifier,
},
AddConstraint {
constraint: Box<PostgresSqlConstraint>,
not_valid: bool,
},
ValidateConstraint {
name: PostgresSqlIdentifier,
},
Other {
sql: String,
},
}Variants§
AddColumn
Fields
§
column: Box<PostgresSqlColumn>AlterColumnType
Fields
§
column: PostgresSqlIdentifier§
data_type: PostgresSqlType§
using: Option<PostgresSqlExpression>SetDefault
DropDefault
Fields
§
column: PostgresSqlIdentifierSetNotNull
Fields
§
column: PostgresSqlIdentifierDropNotNull
Fields
§
column: PostgresSqlIdentifierAddConstraint
ValidateConstraint
Fields
§
name: PostgresSqlIdentifierOther
Trait Implementations§
Source§impl Clone for PostgresSqlAlterOperation
impl Clone for PostgresSqlAlterOperation
Source§impl Debug for PostgresSqlAlterOperation
impl Debug for PostgresSqlAlterOperation
impl Eq for PostgresSqlAlterOperation
impl StructuralPartialEq for PostgresSqlAlterOperation
Auto Trait Implementations§
impl Forget for PostgresSqlAlterOperation
impl Freeze for PostgresSqlAlterOperationwhere
*const PostgresSqlColumn is !null: Freeze,
PhantomData<PostgresSqlColumn>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PostgresSqlIdentifier>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Option<u64>>: Freeze,
PhantomData<PostgresSqlName>: Freeze,
PhantomData<PostgresSqlFunctionReference>: Freeze,
PhantomData<PostgresSqlCallArgument>: Freeze,
*const PostgresSqlExpressionRoot is !null: Freeze,
PhantomData<PostgresSqlExpressionRoot>: Freeze,
PhantomData<PostgresSqlExpressionChild>: Freeze,
*const PostgresSqlConstraint is !null: Freeze,
PhantomData<PostgresSqlConstraint>: Freeze,
impl Move for PostgresSqlAlterOperation
impl RefUnwindSafe for PostgresSqlAlterOperation
impl Send for PostgresSqlAlterOperationwhere
BoxRaw<PostgresSqlColumn>: Send,
RawVecInner: Send,
BoxRaw<PostgresSqlExpressionRoot>: Send,
BoxRaw<PostgresSqlConstraint>: Send,
impl Sync for PostgresSqlAlterOperationwhere
BoxRaw<PostgresSqlColumn>: Sync,
RawVecInner: Sync,
BoxRaw<PostgresSqlExpressionRoot>: Sync,
BoxRaw<PostgresSqlConstraint>: Sync,
impl Unpin for PostgresSqlAlterOperationwhere
Box<PostgresSqlColumn>: Unpin,
*const u8 is !null: Unpin,
Box<PostgresSqlExpressionRoot>: Unpin,
Box<PostgresSqlConstraint>: Unpin,
impl UnsafeUnpin for PostgresSqlAlterOperationwhere
*const PostgresSqlColumn is !null: UnsafeUnpin,
PhantomData<PostgresSqlColumn>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PostgresSqlIdentifier>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Option<u64>>: UnsafeUnpin,
PhantomData<PostgresSqlName>: UnsafeUnpin,
PhantomData<PostgresSqlFunctionReference>: UnsafeUnpin,
PhantomData<PostgresSqlCallArgument>: UnsafeUnpin,
*const PostgresSqlExpressionRoot is !null: UnsafeUnpin,
PhantomData<PostgresSqlExpressionRoot>: UnsafeUnpin,
PhantomData<PostgresSqlExpressionChild>: UnsafeUnpin,
*const PostgresSqlConstraint is !null: UnsafeUnpin,
PhantomData<PostgresSqlConstraint>: UnsafeUnpin,
impl UnwindSafe for PostgresSqlAlterOperationwhere
BoxRaw<PostgresSqlColumn>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<PostgresSqlExpressionRoot>: UnwindSafe,
BoxRaw<PostgresSqlConstraint>: 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,
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