nominal-api-conjure 0.1452.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 StandardValve {
    #[builder(default, list(item(type = super::ValveStateRule)))]
    #[serde(rename = "stateMappings", skip_serializing_if = "Vec::is_empty", default)]
    state_mappings: Vec<super::ValveStateRule>,
    #[builder(default, list(item(type = super::VizActionOption)))]
    #[serde(rename = "actions", skip_serializing_if = "Vec::is_empty", default)]
    actions: Vec<super::VizActionOption>,
}
impl StandardValve {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// Up to 8 rules evaluated in menu order; first match wins. Missing,
    /// non-finite, stale, or unmatched feedback renders unknown.
    #[inline]
    pub fn state_mappings(&self) -> &[super::ValveStateRule] {
        &*self.state_mappings
    }
    /// Up to 32 choices in menu order. Clicking opens the menu; explicit
    /// selection executes only that choice's batch. All choices remain
    /// available regardless of feedback state. Empty means feedback-only.
    #[inline]
    pub fn actions(&self) -> &[super::VizActionOption] {
        &*self.actions
    }
}