Skip to main content

ActionsVariablesApi

Trait ActionsVariablesApi 

Source
pub trait ActionsVariablesApi {
    // Required methods
    fn actions_variables(
        &self,
        repo: &RepoRef,
    ) -> impl Future<Output = Result<Vec<ActionVariable>, ForgeError>> + Send;
    fn create_actions_variable(
        &self,
        repo: &RepoRef,
        name: &str,
        body: &CreateVariableOption,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn delete_actions_variable(
        &self,
        repo: &RepoRef,
        name: &str,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn update_actions_variable(
        &self,
        repo: &RepoRef,
        name: &str,
        body: &UpdateVariableOption,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
}
Expand description

The Actions variable operations of the Forgejo API.

Required Methods§

Source

fn actions_variables( &self, repo: &RepoRef, ) -> impl Future<Output = Result<Vec<ActionVariable>, ForgeError>> + Send

GET /repos/{owner}/{repo}/actions/variables, every page.

Source

fn create_actions_variable( &self, repo: &RepoRef, name: &str, body: &CreateVariableOption, ) -> impl Future<Output = Result<(), ForgeError>> + Send

POST /repos/{owner}/{repo}/actions/variables/{name}.

Source

fn delete_actions_variable( &self, repo: &RepoRef, name: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send

DELETE /repos/{owner}/{repo}/actions/variables/{name}.

Source

fn update_actions_variable( &self, repo: &RepoRef, name: &str, body: &UpdateVariableOption, ) -> impl Future<Output = Result<(), ForgeError>> + Send

PUT /repos/{owner}/{repo}/actions/variables/{name}.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§