Skip to main content

ephemeris_forge_forgejo/api/request/
actions_variables.rs

1use facet::Facet;
2
3/// `CreateVariableOption`, with every property the spec lists.
4#[derive(Clone, Debug, Eq, Facet, PartialEq)]
5pub struct CreateVariableOption {
6    /// The variable's value.
7    pub value: String,
8}
9
10/// The managed subset of `UpdateVariableOption`.
11///
12/// The name is never sent, because Forgejo then keeps the name in the path.
13#[derive(Clone, Debug, Eq, Facet, PartialEq)]
14pub struct UpdateVariableOption {
15    /// The variable's value.
16    pub value: String,
17}