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§
Sourcefn actions_variables(
&self,
repo: &RepoRef,
) -> impl Future<Output = Result<Vec<ActionVariable>, ForgeError>> + Send
fn actions_variables( &self, repo: &RepoRef, ) -> impl Future<Output = Result<Vec<ActionVariable>, ForgeError>> + Send
GET /repos/{owner}/{repo}/actions/variables, every page.
Sourcefn create_actions_variable(
&self,
repo: &RepoRef,
name: &str,
body: &CreateVariableOption,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn create_actions_variable( &self, repo: &RepoRef, name: &str, body: &CreateVariableOption, ) -> impl Future<Output = Result<(), ForgeError>> + Send
POST /repos/{owner}/{repo}/actions/variables/{name}.
Sourcefn delete_actions_variable(
&self,
repo: &RepoRef,
name: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn delete_actions_variable( &self, repo: &RepoRef, name: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send
DELETE /repos/{owner}/{repo}/actions/variables/{name}.
Sourcefn update_actions_variable(
&self,
repo: &RepoRef,
name: &str,
body: &UpdateVariableOption,
) -> impl Future<Output = Result<(), ForgeError>> + Send
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".