[][src]Trait elephantry::Enum

pub trait Enum: Debug {
    fn name() -> &'static str;
fn from_text(value: &str) -> Result<Box<Self>>; }

Trait to convert rust enum to postgresql enum.

Required methods

fn name() -> &'static str

Enum name

fn from_text(value: &str) -> Result<Box<Self>>

Convert str to enum value

Loading content...

Implementors

Loading content...