ephemeris_forge_forgejo/api/operations/
actions_variables.rs1use ephemeris_forge::RepoRef;
2
3use crate::api::error::ForgeError;
4use crate::api::model::ActionVariable;
5use crate::api::request::{CreateVariableOption, UpdateVariableOption};
6
7pub trait ActionsVariablesApi {
9 fn actions_variables(
11 &self,
12 repo: &RepoRef,
13 ) -> impl Future<Output = Result<Vec<ActionVariable>, ForgeError>> + Send;
14
15 fn create_actions_variable(
17 &self,
18 repo: &RepoRef,
19 name: &str,
20 body: &CreateVariableOption,
21 ) -> impl Future<Output = Result<(), ForgeError>> + Send;
22
23 fn delete_actions_variable(
25 &self,
26 repo: &RepoRef,
27 name: &str,
28 ) -> impl Future<Output = Result<(), ForgeError>> + Send;
29
30 fn update_actions_variable(
32 &self,
33 repo: &RepoRef,
34 name: &str,
35 body: &UpdateVariableOption,
36 ) -> impl Future<Output = Result<(), ForgeError>> + Send;
37}