nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 HeartbeatStreamingSessionRequest {
    #[builder(custom(type = super::super::super::api::Range, convert = Box::new))]
    #[serde(rename = "bounds")]
    bounds: Box<super::super::super::api::Range>,
    #[serde(rename = "pointsCount")]
    points_count: i32,
}
impl HeartbeatStreamingSessionRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(bounds: super::super::super::api::Range, points_count: i32) -> Self {
        Self::builder().bounds(bounds).points_count(points_count).build()
    }
    /// The time range of data points ingested since the last heartbeat.
    /// The server atomically merges this with the session's existing bounds
    /// using LEAST/GREATEST to track the full time range.
    #[inline]
    pub fn bounds(&self) -> &super::super::super::api::Range {
        &*self.bounds
    }
    /// Number of data points ingested since the last heartbeat.
    /// The server atomically adds this to the session's running total.
    #[inline]
    pub fn points_count(&self) -> i32 {
        self.points_count
    }
}