pub struct DropRule {
pub if_exists: bool,
pub name: Ident,
pub table_name: ObjectName,
pub drop_behavior: Option<DropBehavior>,
}Expand description
DROP RULE statement.
Its source span covers name and table_name.
DROP RULE [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]See PostgreSQL
Fields§
§if_exists: booltrue when IF EXISTS was present.
name: IdentName of the rule to drop.
table_name: ObjectNameName of the table the rule applies to.
drop_behavior: Option<DropBehavior>Optional drop behavior (CASCADE or RESTRICT).
Trait Implementations§
impl Eq for DropRule
Source§impl Ord for DropRule
impl Ord for DropRule
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for DropRule
impl PartialOrd for DropRule
impl StructuralPartialEq for DropRule
Auto Trait Implementations§
impl Freeze for DropRule
impl RefUnwindSafe for DropRule
impl Send for DropRule
impl Sync for DropRule
impl Unpin for DropRule
impl UnsafeUnpin for DropRule
impl UnwindSafe for DropRule
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