nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Intervals come from an event query. Each event defines [timestamp, timestamp+duration).
#[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 EventIntervalSource {
    #[builder(
        custom(
            type = super::super::super::rids::api::ComputeEventQuery,
            convert = Box::new
        )
    )]
    #[serde(rename = "query")]
    query: Box<super::super::super::rids::api::ComputeEventQuery>,
    #[builder(default, list(item(type = super::EventTagSource)))]
    #[serde(rename = "tagBy", skip_serializing_if = "Vec::is_empty", default)]
    tag_by: Vec<super::EventTagSource>,
}
impl EventIntervalSource {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(query: super::super::super::rids::api::ComputeEventQuery) -> Self {
        Self::builder().query(query).build()
    }
    #[inline]
    pub fn query(&self) -> &super::super::super::rids::api::ComputeEventQuery {
        &*self.query
    }
    /// Non-empty ordered list of tag sources. Each contributes a tag key-value pair per event interval.
    #[inline]
    pub fn tag_by(&self) -> &[super::EventTagSource] {
        &*self.tag_by
    }
}