nominal_api/conjure/objects/scout/checks/api/
unresolved_variables.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct UnresolvedVariables {
13 #[builder(
14 default,
15 map(
16 key(type = super::super::super::compute::api::VariableName),
17 value(type = super::UnresolvedVariableLocator)
18 )
19 )]
20 #[serde(
21 rename = "variables",
22 skip_serializing_if = "std::collections::BTreeMap::is_empty",
23 default
24 )]
25 variables: std::collections::BTreeMap<
26 super::super::super::compute::api::VariableName,
27 super::UnresolvedVariableLocator,
28 >,
29}
30impl UnresolvedVariables {
31 #[inline]
33 pub fn new() -> Self {
34 Self::builder().build()
35 }
36 #[inline]
37 pub fn variables(
38 &self,
39 ) -> &std::collections::BTreeMap<
40 super::super::super::compute::api::VariableName,
41 super::UnresolvedVariableLocator,
42 > {
43 &self.variables
44 }
45}