pub trait IntoApiResult<T> {
    // Required method
    fn into_api_result<NewT, E>(self) -> Result<Option<NewT>, E>
       where NewT: From<T>,
             E: From<StorageError>;
}

Required Methods§

source

fn into_api_result<NewT, E>(self) -> Result<Option<NewT>, E>where NewT: From<T>, E: From<StorageError>,

Implementations on Foreign Types§

source§

impl<T> IntoApiResult<T> for Result<T, StorageError>

source§

fn into_api_result<NewT, E>(self) -> Result<Option<NewT>, E>where NewT: From<T>, E: From<StorageError>,

Implementors§