Trait fuel_core::fuel_core_graphql_api::IntoApiResult

source ·
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>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

Implementors§