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