CmdResult

Type Alias CmdResult 

Source
pub type CmdResult = Result<Option<Text>, Text>;
Expand description

The standard error that should be returned when calling commands.

This error must include an error message in case of failure. It may also include a success message, but that is not required.

Aliased Type§

pub enum CmdResult {
    Ok(Option<Text>),
    Err(Text),
}

Variants§

§1.0.0

Ok(Option<Text>)

Contains the success value

§1.0.0

Err(Text)

Contains the error value