nominal-api-conjure 0.1436.0

Conjure HTTP API bindings for the Nominal platform
Documentation
#[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 ButtonCommand {
    #[serde(rename = "variableName")]
    variable_name: super::super::super::channelvariables::api::ChannelVariableName,
    #[builder(custom(type = super::super::super::api::CommandValue, convert = Box::new))]
    #[serde(rename = "value")]
    value: Box<super::super::super::api::CommandValue>,
}
impl ButtonCommand {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        variable_name: super::super::super::channelvariables::api::ChannelVariableName,
        value: super::super::super::api::CommandValue,
    ) -> Self {
        Self::builder().variable_name(variable_name).value(value).build()
    }
    /// Workbook channel variable naming the commandable series. Must
    /// resolve to a physical series (VariableLocator.series); looked
    /// up in the workbook's channel-variable map at click time.
    #[inline]
    pub fn variable_name(
        &self,
    ) -> &super::super::super::channelvariables::api::ChannelVariableName {
        &self.variable_name
    }
    #[inline]
    pub fn value(&self) -> &super::super::super::api::CommandValue {
        &*self.value
    }
}