Enum sqlparser::ast::AlterColumnOperation
source · [−]pub enum AlterColumnOperation {
SetNotNull,
DropNotNull,
SetDefault {
value: Expr,
},
DropDefault,
SetDataType {
data_type: DataType,
using: Option<Expr>,
},
}
Expand description
An ALTER COLUMN
(Statement::AlterTable
) operation
Variants
SetNotNull
SET NOT NULL
DropNotNull
DROP NOT NULL
SetDefault
Fields
value: Expr
SET DEFAULT <expr>
DropDefault
DROP DEFAULT
SetDataType
[SET DATA] TYPE <data_type> [USING <expr>]
Trait Implementations
sourceimpl Clone for AlterColumnOperation
impl Clone for AlterColumnOperation
sourcefn clone(&self) -> AlterColumnOperation
fn clone(&self) -> AlterColumnOperation
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 Debug for AlterColumnOperation
impl Debug for AlterColumnOperation
sourceimpl Display for AlterColumnOperation
impl Display for AlterColumnOperation
sourceimpl Hash for AlterColumnOperation
impl Hash for AlterColumnOperation
sourceimpl PartialEq<AlterColumnOperation> for AlterColumnOperation
impl PartialEq<AlterColumnOperation> for AlterColumnOperation
sourcefn eq(&self, other: &AlterColumnOperation) -> bool
fn eq(&self, other: &AlterColumnOperation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AlterColumnOperation) -> bool
fn ne(&self, other: &AlterColumnOperation) -> bool
This method tests for !=
.
impl Eq for AlterColumnOperation
impl StructuralEq for AlterColumnOperation
impl StructuralPartialEq for AlterColumnOperation
Auto Trait Implementations
impl RefUnwindSafe for AlterColumnOperation
impl Send for AlterColumnOperation
impl Sync for AlterColumnOperation
impl Unpin for AlterColumnOperation
impl UnwindSafe for AlterColumnOperation
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more