pub struct AlterType {
pub type_name: String,
pub variant: EnumVariant,
}Expand description
An ALTER TYPE ... ADD VALUE '...' statement.
PostgreSQL requires a separate ALTER TYPE for each new variant. This
statement represents adding a single variant to an existing named enum type.
Fields§
§type_name: StringThe name of the enum type to alter.
variant: EnumVariantThe new variant to add.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlterType
impl RefUnwindSafe for AlterType
impl Send for AlterType
impl Sync for AlterType
impl Unpin for AlterType
impl UnsafeUnpin for AlterType
impl UnwindSafe for AlterType
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