Struct EnumDef
pub struct EnumDef {
pub values: Vec<String>,
pub typename: String,
}Expand description
Defines an enum for the PostgreSQL module
Fields§
§values: Vec<String>Holds the fields of the ENUM
typename: StringDefines the name of the PostgreSQL enum identifier
Implementations§
§impl EnumDef
impl EnumDef
pub fn write(&self) -> TypeCreateStatement
pub fn write(&self) -> TypeCreateStatement
Converts the EnumDef to a TypeCreateStatement
Trait Implementations§
impl StructuralPartialEq for EnumDef
Auto Trait Implementations§
impl Freeze for EnumDef
impl RefUnwindSafe for EnumDef
impl Send for EnumDef
impl Sync for EnumDef
impl Unpin for EnumDef
impl UnwindSafe for EnumDef
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