pub trait TemplateClient {
    // Required methods
    fn template_id_get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        template_id: &'life1 Uuid
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Template>, Error<TemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn template_id_upload_put<'life0, 'life1, 'async_trait>(
        &'life0 self,
        template_id: &'life1 Uuid,
        value: impl 'async_trait + Into<Body> + Send
    ) -> Pin<Box<dyn Future<Output = Result<Template, Error<TemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        template_name: Option<&'life1 str>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Template>, Error<TemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn post<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        template: impl 'async_trait + Into<Body> + Send
    ) -> Pin<Box<dyn Future<Output = Result<Template, Error<TemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn template_id_download_get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        template_id: &'life1 Uuid,
        version: Option<i32>
    ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<TemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn template_id_latest_get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        template_id: &'life1 Uuid
    ) -> Pin<Box<dyn Future<Output = Result<i32, Error<TemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn template_id_get<'life0, 'life1, 'async_trait>( &'life0 self, template_id: &'life1 Uuid ) -> Pin<Box<dyn Future<Output = Result<Vec<Template>, Error<TemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn template_id_upload_put<'life0, 'life1, 'async_trait>( &'life0 self, template_id: &'life1 Uuid, value: impl 'async_trait + Into<Body> + Send ) -> Pin<Box<dyn Future<Output = Result<Template, Error<TemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, template_name: Option<&'life1 str> ) -> Pin<Box<dyn Future<Output = Result<Vec<Template>, Error<TemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn post<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, template: impl 'async_trait + Into<Body> + Send ) -> Pin<Box<dyn Future<Output = Result<Template, Error<TemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn template_id_download_get<'life0, 'life1, 'async_trait>( &'life0 self, template_id: &'life1 Uuid, version: Option<i32> ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<TemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn template_id_latest_get<'life0, 'life1, 'async_trait>( &'life0 self, template_id: &'life1 Uuid ) -> Pin<Box<dyn Future<Output = Result<i32, Error<TemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§