nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// The settings for a bit flag mapping. Each position should be unique. Position 0 represents the least significant bit
/// and position 31 represents the most significant bit.
#[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 BitFlag {
    #[serde(rename = "position")]
    position: i32,
    #[builder(into)]
    #[serde(rename = "label")]
    label: String,
}
impl BitFlag {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(position: i32, label: impl Into<String>) -> Self {
        Self::builder().position(position).label(label).build()
    }
    #[inline]
    pub fn position(&self) -> i32 {
        self.position
    }
    #[inline]
    pub fn label(&self) -> &str {
        &*self.label
    }
}