Trait golem_client::api::TemplateClient
source · pub trait TemplateClient {
// Required methods
fn get_template_by_id<'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 update_template<'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_all_templates<'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 upload_template<'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 download_template<'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 get_latest_version<'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§
fn get_template_by_id<'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 update_template<'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_all_templates<'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 upload_template<'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 download_template<'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 get_latest_version<'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.