nominal-api-conjure 0.1450.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// A cell in a flow layout, wrapped with the metadata identifying which
/// grouped fan-out it came from.
#[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 ValueTableFlowCell {
    #[builder(custom(type = super::ValueTableCell, convert = Box::new))]
    #[serde(rename = "cell")]
    cell: Box<super::ValueTableCell>,
    #[builder(default, into)]
    #[serde(rename = "groupId", skip_serializing_if = "Option::is_none", default)]
    group_id: Option<conjure_object::Uuid>,
    #[builder(default, into)]
    #[serde(rename = "partition", skip_serializing_if = "Option::is_none", default)]
    partition: Option<std::collections::BTreeMap<String, String>>,
}
impl ValueTableFlowCell {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(cell: super::ValueTableCell) -> Self {
        Self::builder().cell(cell).build()
    }
    #[inline]
    pub fn cell(&self) -> &super::ValueTableCell {
        &*self.cell
    }
    /// Stable id shared by every cell of one grouped fan-out. Client-generated,
    /// not a RID: there is no server-side registry, and it is meaningful only as
    /// a correlation key within a single panel payload.
    #[inline]
    pub fn group_id(&self) -> Option<conjure_object::Uuid> {
        self.group_id.as_ref().map(|o| *o)
    }
    /// Tag key to value, selecting which grouping of a grouped compute response
    /// this cell renders. Corresponds to `compute.api.Grouping.tagsWithValues`.
    /// Must be absent when `groupId` is absent.
    #[inline]
    pub fn partition(&self) -> Option<&std::collections::BTreeMap<String, String>> {
        self.partition.as_ref().map(|o| &*o)
    }
}