#[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 Geo3dPositionLocal {
#[builder(default, into)]
#[serde(rename = "xVariableName", skip_serializing_if = "Option::is_none", default)]
x_variable_name: Option<
super::super::super::channelvariables::api::ChannelVariableName,
>,
#[builder(default, into)]
#[serde(rename = "yVariableName", skip_serializing_if = "Option::is_none", default)]
y_variable_name: Option<
super::super::super::channelvariables::api::ChannelVariableName,
>,
#[builder(default, into)]
#[serde(rename = "zVariableName", skip_serializing_if = "Option::is_none", default)]
z_variable_name: Option<
super::super::super::channelvariables::api::ChannelVariableName,
>,
}
impl Geo3dPositionLocal {
#[inline]
pub fn new() -> Self {
Self::builder().build()
}
#[inline]
pub fn x_variable_name(
&self,
) -> Option<&super::super::super::channelvariables::api::ChannelVariableName> {
self.x_variable_name.as_ref().map(|o| &*o)
}
#[inline]
pub fn y_variable_name(
&self,
) -> Option<&super::super::super::channelvariables::api::ChannelVariableName> {
self.y_variable_name.as_ref().map(|o| &*o)
}
#[inline]
pub fn z_variable_name(
&self,
) -> Option<&super::super::super::channelvariables::api::ChannelVariableName> {
self.z_variable_name.as_ref().map(|o| &*o)
}
}