pub struct TypeDef {
pub name: Slice,
pub drop: bool,
pub quiet: bool,
pub or_replace: bool,
pub temporary: bool,
pub cascade: bool,
pub ty: StrRef,
}Expand description
CREATE TYPE name AS type or DROP TYPE name.
Fields§
§name: SliceThe name, as a run of parts, outermost first.
drop: boolWhether this is a DROP rather than a CREATE.
quiet: boolWhether IF NOT EXISTS was written on a create or IF EXISTS on a drop.
or_replace: boolWhether OR REPLACE was written, which only a create can have.
temporary: boolWhether TEMP or TEMPORARY was written, which only a create can have.
cascade: boolWhether CASCADE was written, which only a drop can have.
ty: StrRefThe type the name stands for, as it was written, and NONE on a drop.
Trait Implementations§
impl Copy for TypeDef
impl Eq for TypeDef
impl StructuralPartialEq for TypeDef
Auto Trait Implementations§
impl Freeze for TypeDef
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnsafeUnpin for TypeDef
impl UnwindSafe for TypeDef
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