nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 ManualCheckEvaluation {
    #[serde(rename = "rid")]
    rid: super::ManualCheckEvaluationRid,
    #[serde(rename = "checkRid")]
    check_rid: super::super::super::rids::api::CheckRid,
    #[serde(rename = "dataReviewRid")]
    data_review_rid: super::super::super::rids::api::DataReviewRid,
    #[builder(custom(type = super::ManualCheckEvaluationState, convert = Box::new))]
    #[serde(rename = "state")]
    state: Box<super::ManualCheckEvaluationState>,
    #[builder(default, set(item(type = super::super::super::rids::api::UserRid)))]
    #[serde(
        rename = "assigneeRids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    assignee_rids: std::collections::BTreeSet<super::super::super::rids::api::UserRid>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::super::super::rids::api::VersionedVizId>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "chart", skip_serializing_if = "Option::is_none", default)]
    chart: Option<Box<super::super::super::rids::api::VersionedVizId>>,
    #[builder(default, into)]
    #[serde(rename = "notes", skip_serializing_if = "Option::is_none", default)]
    notes: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "notebook", skip_serializing_if = "Option::is_none", default)]
    notebook: Option<super::super::super::rids::api::NotebookRid>,
}
impl ManualCheckEvaluation {
    #[inline]
    pub fn rid(&self) -> &super::ManualCheckEvaluationRid {
        &self.rid
    }
    #[inline]
    pub fn check_rid(&self) -> &super::super::super::rids::api::CheckRid {
        &self.check_rid
    }
    #[inline]
    pub fn data_review_rid(&self) -> &super::super::super::rids::api::DataReviewRid {
        &self.data_review_rid
    }
    #[inline]
    pub fn state(&self) -> &super::ManualCheckEvaluationState {
        &*self.state
    }
    #[inline]
    pub fn assignee_rids(
        &self,
    ) -> &std::collections::BTreeSet<super::super::super::rids::api::UserRid> {
        &self.assignee_rids
    }
    #[deprecated(note = "charts are no longer versioned resources.")]
    #[inline]
    pub fn chart(&self) -> Option<&super::super::super::rids::api::VersionedVizId> {
        self.chart.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn notes(&self) -> Option<&str> {
        self.notes.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn notebook(&self) -> Option<&super::super::super::rids::api::NotebookRid> {
        self.notebook.as_ref().map(|o| &*o)
    }
}