pub struct ComponentClientLive {
pub context: Context,
}
Fields§
§context: Context
Trait Implementations§
source§impl ComponentClient for ComponentClientLive
impl ComponentClient for ComponentClientLive
fn get_components<'life0, 'life1, 'async_trait>(
&'life0 self,
component_name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_component<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
component_type: Option<&'life2 ComponentType>,
component: impl 'async_trait + Into<Body> + Send,
) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_component<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
component_id: &'life1 Uuid,
component_type: Option<&'life2 ComponentType>,
value: impl 'async_trait + Into<Body> + Send,
) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn download_component<'life0, 'life1, 'async_trait>(
&'life0 self,
component_id: &'life1 Uuid,
version: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_component_metadata_all_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
component_id: &'life1 Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_component_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
component_id: &'life1 Uuid,
version: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_latest_component_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
component_id: &'life1 Uuid,
) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ComponentClientLive
impl !RefUnwindSafe for ComponentClientLive
impl Send for ComponentClientLive
impl Sync for ComponentClientLive
impl Unpin for ComponentClientLive
impl !UnwindSafe for ComponentClientLive
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