pub trait ActionsApi {
// Required methods
fn actions_cache(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Option<Cache>, ForgeError>> + Send;
fn actions_group<G: ActionsGroup>(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Option<G>, ForgeError>> + Send;
fn set_actions_cache(
&self,
repository: &RepoRef,
group: &Cache,
) -> impl Future<Output = Result<(), ForgeError>> + Send;
fn set_actions_group<G: ActionsGroup>(
&self,
repository: &RepoRef,
group: &G,
) -> impl Future<Output = Result<(), ForgeError>> + Send;
}Expand description
The actions operations of the GitHub API.
Required Methods§
Sourcefn actions_cache(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Option<Cache>, ForgeError>> + Send
fn actions_cache( &self, repository: &RepoRef, ) -> impl Future<Output = Result<Option<Cache>, ForgeError>> + Send
Read the cache limits, or None when GitHub reports the endpoint
unavailable.
Sourcefn actions_group<G: ActionsGroup>(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Option<G>, ForgeError>> + Send
fn actions_group<G: ActionsGroup>( &self, repository: &RepoRef, ) -> impl Future<Output = Result<Option<G>, ForgeError>> + Send
Read one settings group, or None when GitHub reports the endpoint
unavailable.
Sourcefn set_actions_cache(
&self,
repository: &RepoRef,
group: &Cache,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn set_actions_cache( &self, repository: &RepoRef, group: &Cache, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Replace the cache limits.
Sourcefn set_actions_group<G: ActionsGroup>(
&self,
repository: &RepoRef,
group: &G,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn set_actions_group<G: ActionsGroup>( &self, repository: &RepoRef, group: &G, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Replace one settings group.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".