Type Alias couch_rs::error::CouchResult
source · pub type CouchResult<T> = Result<T, CouchError>;
Aliased Type§
enum CouchResult<T> {
Ok(T),
Err(CouchError),
}
Variants§
Trait Implementations§
source§impl<T> CouchResultExt<T> for CouchResult<T>
impl<T> CouchResultExt<T> for CouchResult<T>
source§fn into_option(self) -> CouchResult<Option<T>>
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.