#[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 {
#[inline]
pub fn new() -> Self {
Self::builder().build()
}
#[inline]
pub fn state_mappings(&self) -> &[super::ValveStateRule] {
&*self.state_mappings
}
#[inline]
pub fn actions(&self) -> &[super::VizActionOption] {
&*self.actions
}
}