pub enum AlterDomainOperation {
AddConstraint {
constraint: TableConstraint,
not_valid: bool,
},
DropConstraint {
if_exists: bool,
name: Ident,
drop_behavior: Option<DropBehavior>,
},
RenameConstraint {
old_name: Ident,
new_name: Ident,
},
OwnerTo(Owner),
RenameTo {
new_name: Ident,
},
SetSchema {
schema_name: ObjectName,
},
SetDefault {
default: Expr,
},
DropDefault,
ValidateConstraint {
name: Ident,
},
}Expand description
An AlterDomain operation.
Variants§
AddConstraint
ADD CONSTRAINT constraint_name CHECK (expr) [NOT VALID]
Fields
§
constraint: TableConstraintThe constraint to add.
DropConstraint
DROP CONSTRAINT [IF EXISTS] constraint_name [CASCADE | RESTRICT]
Fields
§
drop_behavior: Option<DropBehavior>Optional drop behavior.
RenameConstraint
RENAME CONSTRAINT old_name TO new_name
OwnerTo(Owner)
OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
RenameTo
RENAME TO new_name
SetSchema
SET SCHEMA schema_name
Fields
§
schema_name: ObjectNameThe target schema name.
SetDefault
SET DEFAULT expr
DropDefault
DROP DEFAULT
ValidateConstraint
VALIDATE CONSTRAINT constraint_name
Trait Implementations§
Source§impl Clone for AlterDomainOperation
impl Clone for AlterDomainOperation
Source§fn clone(&self) -> AlterDomainOperation
fn clone(&self) -> AlterDomainOperation
Returns a duplicate of the value. Read more
1.0.0 · 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 AlterDomainOperation
impl Debug for AlterDomainOperation
Source§impl<'de> Deserialize<'de> for AlterDomainOperation
impl<'de> Deserialize<'de> for AlterDomainOperation
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
Source§impl Display for AlterDomainOperation
impl Display for AlterDomainOperation
Source§impl Hash for AlterDomainOperation
impl Hash for AlterDomainOperation
Source§impl Ord for AlterDomainOperation
impl Ord for AlterDomainOperation
Source§fn cmp(&self, other: &AlterDomainOperation) -> Ordering
fn cmp(&self, other: &AlterDomainOperation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlterDomainOperation
impl PartialEq for AlterDomainOperation
Source§impl PartialOrd for AlterDomainOperation
impl PartialOrd for AlterDomainOperation
Source§impl Serialize for AlterDomainOperation
impl Serialize for AlterDomainOperation
Source§impl Visit for AlterDomainOperation
impl Visit for AlterDomainOperation
Source§impl VisitMut for AlterDomainOperation
impl VisitMut for AlterDomainOperation
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for AlterDomainOperation
impl StructuralPartialEq for AlterDomainOperation
Auto Trait Implementations§
impl Freeze for AlterDomainOperation
impl RefUnwindSafe for AlterDomainOperation
impl Send for AlterDomainOperation
impl Sync for AlterDomainOperation
impl Unpin for AlterDomainOperation
impl UnsafeUnpin for AlterDomainOperation
impl UnwindSafe for AlterDomainOperation
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