Struct golem_client::api::TemplateClientLive
source · pub struct TemplateClientLive {
pub context: Context,
}
Fields§
§context: Context
Trait Implementations§
source§impl TemplateClient for TemplateClientLive
impl TemplateClient for TemplateClientLive
fn get_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 create_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 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 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_template_metadata_all_versions<'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 get_template_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
template_id: &'life1 Uuid,
version: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Template, Error<TemplateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_latest_template_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,
Auto Trait Implementations§
impl !RefUnwindSafe for TemplateClientLive
impl Send for TemplateClientLive
impl Sync for TemplateClientLive
impl Unpin for TemplateClientLive
impl !UnwindSafe for TemplateClientLive
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more