ephemeris_forge_github/api/request/variables.rs
1use facet::Facet;
2
3/// Where an Actions variable lives.
4#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]
5pub enum VariableScope {
6 /// A repository variable.
7 Repository,
8 /// A variable of the named environment.
9 Environment(String),
10}
11
12/// The body that creates or updates an Actions variable.
13#[derive(Clone, Debug, Eq, Facet, PartialEq)]
14pub struct VariableBody {
15 /// The variable's name.
16 pub name: String,
17 /// The variable's value.
18 pub value: String,
19}