golem_client::api

Trait ApiDefinitionClient

source
pub trait ApiDefinitionClient {
    // Required methods
    fn import_open_api<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 Value,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_definitions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api_definition_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<HttpApiDefinitionWithTypeInfo>, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_definition<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 HttpApiDefinitionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_definition<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        version: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn update_definition<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        version: &'life2 str,
        value: &'life3 HttpApiDefinitionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn delete_definition<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 str,
        version: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error<ApiDefinitionError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn import_open_api<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 Value, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn list_definitions<'life0, 'life1, 'async_trait>( &'life0 self, api_definition_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<HttpApiDefinitionWithTypeInfo>, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn create_definition<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 HttpApiDefinitionRequest, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_definition<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn update_definition<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: &'life1 str, version: &'life2 str, value: &'life3 HttpApiDefinitionRequest, ) -> Pin<Box<dyn Future<Output = Result<HttpApiDefinitionWithTypeInfo, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn delete_definition<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<String, Error<ApiDefinitionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§