nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Queries events and emits an enum series where each data point corresponds to an event and the enum value is
/// derived from a single event field (property, label, etc).
#[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 EventsEnumSeries {
    #[builder(
        custom(
            type = super::super::super::rids::api::ComputeEventQuery,
            convert = Box::new
        )
    )]
    #[serde(rename = "query")]
    query: Box<super::super::super::rids::api::ComputeEventQuery>,
    #[builder(custom(type = super::EventsEnumValueSource, convert = Box::new))]
    #[serde(rename = "valueSource")]
    value_source: Box<super::EventsEnumValueSource>,
}
impl EventsEnumSeries {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        query: super::super::super::rids::api::ComputeEventQuery,
        value_source: super::EventsEnumValueSource,
    ) -> Self {
        Self::builder().query(query).value_source(value_source).build()
    }
    #[inline]
    pub fn query(&self) -> &super::super::super::rids::api::ComputeEventQuery {
        &*self.query
    }
    #[inline]
    pub fn value_source(&self) -> &super::EventsEnumValueSource {
        &*self.value_source
    }
}