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§
Sourcefn create_variable(
&self,
repository: &RepoRef,
scope: &VariableScope,
variable: &VariableBody,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn create_variable( &self, repository: &RepoRef, scope: &VariableScope, variable: &VariableBody, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Create an Actions variable.
Sourcefn delete_variable(
&self,
repository: &RepoRef,
scope: &VariableScope,
name: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn delete_variable( &self, repository: &RepoRef, scope: &VariableScope, name: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Delete the Actions variable name.
Sourcefn update_variable(
&self,
repository: &RepoRef,
scope: &VariableScope,
variable: &VariableBody,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn update_variable( &self, repository: &RepoRef, scope: &VariableScope, variable: &VariableBody, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Change the value of an Actions variable.
Sourcefn variables(
&self,
repository: &RepoRef,
scope: &VariableScope,
) -> impl Future<Output = Result<Vec<Variable>, ForgeError>> + Send
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".