pub trait Component {
    // Required methods
    fn get_components_of_id<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        authorization: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, ComponentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn put_component<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        template: impl 'async_trait + Into<Body> + Send,
        authorization: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Component, ComponentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_components<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        project_id: Option<&'life1 str>,
        template_name: Option<&'life2 str>,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, ComponentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn post_component<'life0, 'life1, 'async_trait>(
        &'life0 self,
        field0: ComponentQuery,
        template: impl 'async_trait + Into<Body> + Send,
        authorization: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Component, ComponentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn download_component<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        version: &'life2 str,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<Bytes>> + Send + Sync + Unpin>, ComponentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_latest_component<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        authorization: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, ComponentError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn get_components_of_id<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, template_id: &'life1 str, authorization: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, ComponentError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn put_component<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, template_id: &'life1 str, template: impl 'async_trait + Into<Body> + Send, authorization: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Component, ComponentError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_components<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, project_id: Option<&'life1 str>, template_name: Option<&'life2 str>, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, ComponentError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn post_component<'life0, 'life1, 'async_trait>( &'life0 self, field0: ComponentQuery, template: impl 'async_trait + Into<Body> + Send, authorization: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Component, ComponentError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn download_component<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, template_id: &'life1 str, version: &'life2 str, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Result<Bytes>> + Send + Sync + Unpin>, ComponentError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn get_latest_component<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, template_id: &'life1 str, authorization: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<i32, ComponentError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§