Skip to main content

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

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