pub trait GithubProvider: Send + Sync {
// Required methods
fn get_commit_sha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
tag: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, PinnerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_latest_release<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, PinnerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for interacting with the GitHub API.
Required Methods§
Sourcefn get_commit_sha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
tag: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, PinnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_commit_sha<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
tag: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, PinnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Fetches the commit SHA for a given action and tag/branch.
Sourcefn get_latest_release<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, PinnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_latest_release<'life0, 'life1, 'async_trait>(
&'life0 self,
action: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, PinnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches the latest release tag for a given action.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".