pub enum AlterGenericOption {
Add {
option: CreateServerOption,
add_keyword: bool,
},
Set(CreateServerOption),
Drop(Ident),
}Expand description
An element of a PostgreSQL OPTIONS ( [ ADD | SET | DROP ] option ['value'] [, ...] )
list in an ALTER statement.
Variants§
Add
[ ADD ] option 'value', which fails if the option is already set.
Fields
§
option: CreateServerOptionThe option to add.
Set(CreateServerOption)
SET option 'value', which fails if the option is not set.
Drop(Ident)
DROP option
Trait Implementations§
Source§impl Clone for AlterGenericOption
impl Clone for AlterGenericOption
Source§fn clone(&self) -> AlterGenericOption
fn clone(&self) -> AlterGenericOption
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 AlterGenericOption
impl Debug for AlterGenericOption
Source§impl Display for AlterGenericOption
impl Display for AlterGenericOption
impl Eq for AlterGenericOption
Source§impl Hash for AlterGenericOption
impl Hash for AlterGenericOption
Source§impl Ord for AlterGenericOption
impl Ord for AlterGenericOption
Source§fn cmp(&self, other: &AlterGenericOption) -> Ordering
fn cmp(&self, other: &AlterGenericOption) -> Ordering
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 PartialEq for AlterGenericOption
impl PartialEq for AlterGenericOption
Source§impl PartialOrd for AlterGenericOption
impl PartialOrd for AlterGenericOption
Source§impl Spanned for AlterGenericOption
impl Spanned for AlterGenericOption
impl StructuralPartialEq for AlterGenericOption
Auto Trait Implementations§
impl Freeze for AlterGenericOption
impl RefUnwindSafe for AlterGenericOption
impl Send for AlterGenericOption
impl Sync for AlterGenericOption
impl Unpin for AlterGenericOption
impl UnsafeUnpin for AlterGenericOption
impl UnwindSafe for AlterGenericOption
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