pub struct EnumDef {
pub name: String,
pub labels: Vec<String>,
}Expand description
v7.17.0 Phase 1.4 — catalogued user-defined ENUM type. The
label vector is order-preserving (PG enum ordering follows the
declared order). At INSERT/UPDATE on a column bound to this
enum, the engine looks up the value against labels and
rejects non-members.
Fields§
§name: String§labels: Vec<String>Trait Implementations§
impl Eq for EnumDef
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 UnsafeUnpin 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