#[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 {
#[inline]
pub fn rid(&self) -> &super::ChartThemeRid {
&self.rid
}
#[inline]
pub fn name(&self) -> &str {
&*self.name
}
#[inline]
pub fn created_by(&self) -> &conjure_object::ResourceIdentifier {
&self.created_by
}
#[inline]
pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
self.created_at
}
#[inline]
pub fn updated_by(&self) -> Option<&conjure_object::ResourceIdentifier> {
self.updated_by.as_ref().map(|o| &*o)
}
#[inline]
pub fn updated_at(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
self.updated_at.as_ref().map(|o| *o)
}
#[inline]
pub fn content(&self) -> &super::ChartThemeContent {
&*self.content
}
}