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 EnumPlot {
    #[builder(default, list(item(type = super::super::super::super::api::Timestamp)))]
    #[serde(rename = "timestamps", skip_serializing_if = "Vec::is_empty", default)]
    timestamps: Vec<super::super::super::super::api::Timestamp>,
    #[builder(default, list(item(type = i32)))]
    #[serde(rename = "values", skip_serializing_if = "Vec::is_empty", default)]
    values: Vec<i32>,
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "categories", skip_serializing_if = "Vec::is_empty", default)]
    categories: Vec<String>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::PageToken>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none", default)]
    next_page_token: Option<Box<super::PageToken>>,
}
impl EnumPlot {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn timestamps(&self) -> &[super::super::super::super::api::Timestamp] {
        &*self.timestamps
    }
    #[inline]
    pub fn values(&self) -> &[i32] {
        &*self.values
    }
    #[inline]
    pub fn categories(&self) -> &[String] {
        &*self.categories
    }
    /// Continuation token for this paged result. Can only be returned if paging was requested.
    /// To retrieve the next page, repeat the same request with this
    /// value as `pageToken` and keep the pageSize sign unchanged. Returned only when this response
    /// contains exactly `abs(pageSize)` points; the next response may still be empty if this page ended exactly at
    /// the result-set boundary. Empty means this response was short and there are no further points in the
    /// requested direction.
    #[inline]
    pub fn next_page_token(&self) -> Option<&super::PageToken> {
        self.next_page_token.as_ref().map(|o| &**o)
    }
}