Skip to main content

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

1/// Search runs. Each matched run expands to one grouping per data source attached to the run:
2/// asset-typed data sources contribute one grouping per data scope on the asset; dataset-typed
3/// data sources contribute one grouping per dataset. Every grouping is tagged by `runRid` and
4/// `dataScope` (the asset's data scope name for asset-typed sources, or the run-local data
5/// source ref name for dataset-typed sources); asset-typed groupings additionally carry
6/// `assetRid`.
7#[derive(
8    Debug,
9    Clone,
10    conjure_object::serde::Serialize,
11    conjure_object::serde::Deserialize,
12    PartialEq,
13    Eq,
14    PartialOrd,
15    Ord,
16    Hash
17)]
18#[serde(crate = "conjure_object::serde")]
19#[conjure_object::private::staged_builder::staged_builder]
20#[builder(crate = conjure_object::private::staged_builder, update, inline)]
21pub struct RunsSearchTarget {
22    #[builder(custom(type = super::ResourceSearchQuery, convert = Box::new))]
23    #[serde(rename = "query")]
24    query: Box<super::ResourceSearchQuery>,
25}
26impl RunsSearchTarget {
27    /// Constructs a new instance of the type.
28    #[inline]
29    pub fn new(query: super::ResourceSearchQuery) -> Self {
30        Self::builder().query(query).build()
31    }
32    /// Predicate tree used to filter matching runs.
33    #[inline]
34    pub fn query(&self) -> &super::ResourceSearchQuery {
35        &*self.query
36    }
37}