Skip to main content

VariablesApi

Trait VariablesApi 

Source
pub trait VariablesApi {
    // Required methods
    fn create_variable(
        &self,
        repository: &RepoRef,
        scope: &VariableScope,
        variable: &VariableBody,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn delete_variable(
        &self,
        repository: &RepoRef,
        scope: &VariableScope,
        name: &str,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn update_variable(
        &self,
        repository: &RepoRef,
        scope: &VariableScope,
        variable: &VariableBody,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn variables(
        &self,
        repository: &RepoRef,
        scope: &VariableScope,
    ) -> impl Future<Output = Result<Vec<Variable>, ForgeError>> + Send;
}
Expand description

The variables operations of the GitHub API.

Required Methods§

Source

fn create_variable( &self, repository: &RepoRef, scope: &VariableScope, variable: &VariableBody, ) -> impl Future<Output = Result<(), ForgeError>> + Send

Create an Actions variable.

Source

fn delete_variable( &self, repository: &RepoRef, scope: &VariableScope, name: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send

Delete the Actions variable name.

Source

fn update_variable( &self, repository: &RepoRef, scope: &VariableScope, variable: &VariableBody, ) -> impl Future<Output = Result<(), ForgeError>> + Send

Change the value of an Actions variable.

Source

fn variables( &self, repository: &RepoRef, scope: &VariableScope, ) -> impl Future<Output = Result<Vec<Variable>, ForgeError>> + Send

Read the Actions variables in scope.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§