Function echo_library::parse_module::get_task_kind

source ·
pub fn get_task_kind(kind: &str) -> Result<String, ErrorKind>
Expand description

Validates the kind name of the task and returns the formatted kind if valid

§Arguments

  • kind - A reference to the kind name of the task

§Returns

  • An Ok Result containing the formatted kind if the input is valid
  • An Err Result with an ErrorKind::NotFound if the input is not valid