Skip to main content

PromptResult

Type Alias PromptResult 

Source
pub type PromptResult<T> = Result<T, PromptError>;
Available on crate feature prompt only.
Expand description

Result of a prompt helper.

Aliased Type§

pub enum PromptResult<T> {
    Ok(T),
    Err(PromptError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(PromptError)

Contains the error value