ephemeris_forge_github/live/variables.rs
1use std::collections::BTreeMap;
2
3use super::Live;
4use crate::api::model;
5
6/// The live Actions variables.
7pub(crate) struct View<'a> {
8 pub(crate) repository: &'a [model::Variable],
9 pub(crate) environments: &'a BTreeMap<String, Vec<model::Variable>>,
10}
11
12impl Live {
13 pub(crate) fn variables_view(&self) -> View<'_> {
14 View {
15 repository: &self.variables,
16 environments: &self.environment_variables,
17 }
18 }
19}