pub trait Client<CTXEXT> {
// Required methods
fn list_profiles<'life0, 'async_trait>(
&'life0 self,
ctx: Context<CTXEXT>,
) -> Pin<Box<dyn Future<Output = Result<ListProfile, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_profile_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<UsageProfile, 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 Profiles and retrieving usage statistics.
Required Methods§
Sourcefn list_profiles<'life0, 'async_trait>(
&'life0 self,
ctx: Context<CTXEXT>,
) -> Pin<Box<dyn Future<Output = Result<ListProfile, ResponseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_profiles<'life0, 'async_trait>(
&'life0 self,
ctx: Context<CTXEXT>,
) -> Pin<Box<dyn Future<Output = Result<ListProfile, ResponseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists all available Profiles.
Sourcefn get_profile_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<UsageProfile, ResponseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_profile_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<UsageProfile, 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 Profile.