json

Type Alias Result

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

Result type used by this crate.

Note: Since 0.9.0 the old JsonResult type is deprecated. Always use json::Result instead.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value