Trait couch_rs::error::CouchResultExt

source ·
pub trait CouchResultExt<T> {
    // Required method
    fn into_option(self) -> CouchResult<Option<T>>;
}

Required Methods§

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.

Implementors§