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 ResolveStreamingSessionResponse {
    #[serde(rename = "sessionRid")]
    session_rid: super::StreamingSessionRid,
    #[serde(rename = "datasetRid")]
    dataset_rid: super::super::super::api::rids::DatasetRid,
    #[serde(rename = "status")]
    status: super::StreamingSessionStatus,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::StreamingSessionSource>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "source", skip_serializing_if = "Option::is_none", default)]
    source: Option<Box<super::StreamingSessionSource>>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::api::Range>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "bounds", skip_serializing_if = "Option::is_none", default)]
    bounds: Option<Box<super::super::super::api::Range>>,
    #[serde(rename = "pointsCount")]
    points_count: conjure_object::SafeLong,
    #[builder(custom(type = super::super::super::api::Timestamp, convert = Box::new))]
    #[serde(rename = "createdAt")]
    created_at: Box<super::super::super::api::Timestamp>,
}
impl ResolveStreamingSessionResponse {
    #[inline]
    pub fn session_rid(&self) -> &super::StreamingSessionRid {
        &self.session_rid
    }
    #[inline]
    pub fn dataset_rid(&self) -> &super::super::super::api::rids::DatasetRid {
        &self.dataset_rid
    }
    #[inline]
    pub fn status(&self) -> &super::StreamingSessionStatus {
        &self.status
    }
    #[inline]
    pub fn source(&self) -> Option<&super::StreamingSessionSource> {
        self.source.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn bounds(&self) -> Option<&super::super::super::api::Range> {
        self.bounds.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn points_count(&self) -> conjure_object::SafeLong {
        self.points_count
    }
    #[inline]
    pub fn created_at(&self) -> &super::super::super::api::Timestamp {
        &*self.created_at
    }
}