nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// 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
    }
}