Trait ValueEnum

Source
pub trait ValueEnum {
    // Required method
    fn as_enum_str(&self) -> Result<Cow<'static, str>, PlanError>;
}
Expand description

Trait for enums that can be converted to a string representation for textification.

Returns Ok(str) for valid enum values, or Err(PlanError) for invalid or unknown values.

Required Methods§

Source

fn as_enum_str(&self) -> Result<Cow<'static, str>, PlanError>

Implementations on Foreign Types§

Source§

impl ValueEnum for JoinType

Source§

fn as_enum_str(&self) -> Result<Cow<'static, str>, PlanError>

Source§

impl ValueEnum for SortKind

Source§

fn as_enum_str(&self) -> Result<Cow<'static, str>, PlanError>

Implementors§