Skip to main content

Client

Trait Client 

Source
pub trait Client<CTXEXT> {
    // Required methods
    fn list_functions<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context<CTXEXT>,
    ) -> Pin<Box<dyn Future<Output = Result<ListFunction, ResponseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_function_usage<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        ctx: Context<CTXEXT>,
        owner: &'life1 str,
        repository: &'life2 str,
        commit: Option<&'life3 str>,
    ) -> Pin<Box<dyn Future<Output = Result<UsageFunction, ResponseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Client for listing Functions and retrieving usage statistics.

Required Methods§

Source

fn list_functions<'life0, 'async_trait>( &'life0 self, ctx: Context<CTXEXT>, ) -> Pin<Box<dyn Future<Output = Result<ListFunction, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists Functions.

Source

fn get_function_usage<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, ctx: Context<CTXEXT>, owner: &'life1 str, repository: &'life2 str, commit: Option<&'life3 str>, ) -> Pin<Box<dyn Future<Output = Result<UsageFunction, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Retrieves usage statistics for a Function.

Implementors§

Source§

impl<CTXEXT> Client<CTXEXT> for ObjectiveAiClient
where CTXEXT: Send + Sync + 'static,