pub trait IntoApiObject {
type ApiObject: Send;
type ExtraArgs<'a>: Send;
// Required method
fn into_api_object<'a, 'life0, 'async_trait>(
self,
state: &'life0 State,
args: Self::ExtraArgs<'a>,
) -> Pin<Box<dyn Future<Output = Result<Self::ApiObject, DatabaseError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
Required Methods§
fn into_api_object<'a, 'life0, 'async_trait>(
self,
state: &'life0 State,
args: Self::ExtraArgs<'a>,
) -> Pin<Box<dyn Future<Output = Result<Self::ApiObject, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.