#[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 GeoPlot3dVisualizationOptions {
#[serde(rename = "color")]
color: super::super::super::api::HexColor,
#[serde(rename = "lineStyle")]
line_style: super::GeoLine3dStyle,
#[builder(
default,
custom(
type = impl
Into<Option<super::Geo3dModel>>,
convert = |v|v.into().map(Box::new)
)
)]
#[serde(rename = "model", skip_serializing_if = "Option::is_none", default)]
model: Option<Box<super::Geo3dModel>>,
}
impl GeoPlot3dVisualizationOptions {
#[inline]
pub fn new(
color: super::super::super::api::HexColor,
line_style: super::GeoLine3dStyle,
) -> Self {
Self::builder().color(color).line_style(line_style).build()
}
#[inline]
pub fn color(&self) -> &super::super::super::api::HexColor {
&self.color
}
#[inline]
pub fn line_style(&self) -> &super::GeoLine3dStyle {
&self.line_style
}
#[inline]
pub fn model(&self) -> Option<&super::Geo3dModel> {
self.model.as_ref().map(|o| &**o)
}
}