DeResult

Type Alias DeResult 

Source
pub type DeResult<T> = Result<T, Error>;
Expand description

Serde documentation shadows the std’s Result type which can be really confusing for Rust newcomers, so we compromise by creating an alias but prefixing with “De” to make it standout.

Aliased Type§

pub enum DeResult<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value