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.