Skip to main content

nominal_api/conjure/objects/scout/compute/api/
combine_assets_frame.rs

1/// Combines explicit assets into one frame. Each asset expands to one tagged grouping per data scope on that
2/// asset, with the same per-grouping tags as asset-target SearchFrame (assetRid, dataScope).
3#[derive(
4    Debug,
5    Clone,
6    conjure_object::serde::Serialize,
7    conjure_object::serde::Deserialize,
8    PartialEq,
9    Eq,
10    PartialOrd,
11    Ord,
12    Hash
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct CombineAssetsFrame {
18    #[builder(default, set(item(type = super::Asset)))]
19    #[serde(
20        rename = "assets",
21        skip_serializing_if = "std::collections::BTreeSet::is_empty",
22        default
23    )]
24    assets: std::collections::BTreeSet<super::Asset>,
25}
26impl CombineAssetsFrame {
27    /// Constructs a new instance of the type.
28    #[inline]
29    pub fn new() -> Self {
30        Self::builder().build()
31    }
32    /// Explicit assets to combine into a single frame.
33    #[inline]
34    pub fn assets(&self) -> &std::collections::BTreeSet<super::Asset> {
35        &self.assets
36    }
37}