Skip to main content

ActionsApi

Trait ActionsApi 

Source
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§

Source

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.

Source

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.

Source

fn set_actions_cache( &self, repository: &RepoRef, group: &Cache, ) -> impl Future<Output = Result<(), ForgeError>> + Send

Replace the cache limits.

Source

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".

Implementors§