Type Alias couch_rs::error::CouchResult

source ·
pub type CouchResult<T> = Result<T, CouchError>;

Aliased Type§

enum CouchResult<T> {
    Ok(T),
    Err(CouchError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(CouchError)

Contains the error value

Trait Implementations§

source§

impl<T> CouchResultExt<T> for CouchResult<T>

source§

fn into_option(self) -> CouchResult<Option<T>>

turns an Ok into an Ok(Some), a not-found into an Ok(None), otherwise it will return the error.