nominal-api 0.1259.0

API bindings for the Nominal platform
Documentation
/// Position in a local Cartesian coordinate frame. Useful when data is
/// expressed in a scene-relative reference frame rather than a global
/// geographic one (WGS84 / ECEF).
#[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 {
    /// Constructs a new instance of the type.
    #[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)
    }
}