Skip to main content

IntoApiObject

Trait IntoApiObject 

Source
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§

Source

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.

Implementors§

Source§

impl IntoApiObject for Announcement

Source§

impl IntoApiObject for DatabaseHost

Source§

impl IntoApiObject for MergedEggConfiguration

Source§

impl IntoApiObject for NestEgg

Source§

impl IntoApiObject for OAuthProvider

Source§

impl IntoApiObject for Server

Source§

impl IntoApiObject for ServerActivity

Source§

impl IntoApiObject for ServerAllocation

Source§

impl IntoApiObject for ServerBackup

Source§

impl IntoApiObject for ServerDatabase

Source§

impl IntoApiObject for ServerMount

Source§

impl IntoApiObject for ServerSchedule

Source§

impl IntoApiObject for ServerScheduleStep

Source§

impl IntoApiObject for ServerSubuser

Source§

impl IntoApiObject for ServerVariable

Source§

impl IntoApiObject for User

Source§

impl IntoApiObject for UserActivity

Source§

impl IntoApiObject for UserApiKey

Source§

impl IntoApiObject for UserCommandSnippet

Source§

impl IntoApiObject for UserSecurityKey

Source§

impl IntoApiObject for UserServerGroup

Source§

impl IntoApiObject for UserSession

Source§

impl IntoApiObject for UserSshKey