Struct sea_schema::postgres::def::EnumDef
source ยท pub struct EnumDef {
pub values: Vec<String>,
pub typename: String,
}
Available on crate features
postgres
and def
only.Expand description
Defines an enum for the PostgreSQL module
Fieldsยง
ยงvalues: Vec<String>
Holds the fields of the ENUM
typename: String
Defines the name of the PostgreSQL enum identifier
Implementationsยง
sourceยงimpl EnumDef
impl EnumDef
sourcepub fn write(&self) -> TypeCreateStatement
Available on crate feature writer
only.
pub fn write(&self) -> TypeCreateStatement
writer
only.Converts the EnumDef to a TypeCreateStatement
Trait Implementationsยง
sourceยงimpl PartialEq for EnumDef
impl PartialEq for EnumDef
impl StructuralPartialEq for EnumDef
Auto Trait Implementationsยง
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