nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 Geo3dPositionWgs84 {
    #[serde(rename = "latitudeVariableName")]
    latitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
    #[serde(rename = "longitudeVariableName")]
    longitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
    #[builder(default, into)]
    #[serde(
        rename = "heightVariableName",
        skip_serializing_if = "Option::is_none",
        default
    )]
    height_variable_name: Option<
        super::super::super::channelvariables::api::ChannelVariableName,
    >,
}
impl Geo3dPositionWgs84 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        latitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
        longitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
    ) -> Self {
        Self::builder()
            .latitude_variable_name(latitude_variable_name)
            .longitude_variable_name(longitude_variable_name)
            .build()
    }
    #[inline]
    pub fn latitude_variable_name(
        &self,
    ) -> &super::super::super::channelvariables::api::ChannelVariableName {
        &self.latitude_variable_name
    }
    #[inline]
    pub fn longitude_variable_name(
        &self,
    ) -> &super::super::super::channelvariables::api::ChannelVariableName {
        &self.longitude_variable_name
    }
    #[inline]
    pub fn height_variable_name(
        &self,
    ) -> Option<&super::super::super::channelvariables::api::ChannelVariableName> {
        self.height_variable_name.as_ref().map(|o| &*o)
    }
}