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 ChartTheme {
    #[serde(rename = "rid")]
    rid: super::ChartThemeRid,
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[serde(rename = "createdBy")]
    created_by: conjure_object::ResourceIdentifier,
    #[serde(rename = "createdAt")]
    created_at: conjure_object::DateTime<conjure_object::Utc>,
    #[builder(default, into)]
    #[serde(rename = "updatedBy", skip_serializing_if = "Option::is_none", default)]
    updated_by: Option<conjure_object::ResourceIdentifier>,
    #[builder(default, into)]
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none", default)]
    updated_at: Option<conjure_object::DateTime<conjure_object::Utc>>,
    #[builder(custom(type = super::ChartThemeContent, convert = Box::new))]
    #[serde(rename = "content")]
    content: Box<super::ChartThemeContent>,
}
impl ChartTheme {
    /// Unique resource identifier for the theme.
    #[inline]
    pub fn rid(&self) -> &super::ChartThemeRid {
        &self.rid
    }
    /// The name of the theme as defined by the user.
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    /// The rid of the user who first created the theme.
    #[inline]
    pub fn created_by(&self) -> &conjure_object::ResourceIdentifier {
        &self.created_by
    }
    /// The time the theme was created.
    #[inline]
    pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.created_at
    }
    /// The rid of the user who last updated the theme.
    #[inline]
    pub fn updated_by(&self) -> Option<&conjure_object::ResourceIdentifier> {
        self.updated_by.as_ref().map(|o| &*o)
    }
    /// The rid of the user who last updated the theme.
    #[inline]
    pub fn updated_at(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
        self.updated_at.as_ref().map(|o| *o)
    }
    /// Specifies the chart theme styling (e.g. font, legends, axes)
    #[inline]
    pub fn content(&self) -> &super::ChartThemeContent {
        &*self.content
    }
}