pub trait Fetcher<CTXEXT> {
// Required method
fn fetch<'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<Option<GetFunction>, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Fetches Function definitions from GitHub repositories.
Functions are stored as function.json at repository root and referenced
by owner/repository (optionally with commit SHA).
Required Methods§
Sourcefn fetch<'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<Option<GetFunction>, ResponseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fetch<'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<Option<GetFunction>, ResponseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Fetches a Function by owner/repository/commit.
Returns None if the Function is not found.