#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ValueTableCell {
#[builder(into)]
#[serde(rename = "variableName")]
variable_name: String,
#[builder(default, into)]
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none", default)]
uuid: Option<conjure_object::Uuid>,
#[builder(custom(type = super::ValueTableCellConfig, convert = Box::new))]
#[serde(rename = "config")]
config: Box<super::ValueTableCellConfig>,
}
impl ValueTableCell {
#[inline]
pub fn new(
variable_name: impl Into<String>,
config: super::ValueTableCellConfig,
) -> Self {
Self::builder().variable_name(variable_name).config(config).build()
}
#[inline]
pub fn variable_name(&self) -> &str {
&*self.variable_name
}
#[inline]
pub fn uuid(&self) -> Option<conjure_object::Uuid> {
self.uuid.as_ref().map(|o| *o)
}
#[inline]
pub fn config(&self) -> &super::ValueTableCellConfig {
&*self.config
}
}