Trait elephantry::Enum[][src]

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[src]

Enum name

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

Convert str to enum value

Loading content...

Implementors

Loading content...