#[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 AutomaticCheckEvaluation {
#[serde(rename = "rid")]
rid: super::super::super::super::api::rids::AutomaticCheckEvaluationRid,
#[serde(rename = "checkRid")]
check_rid: super::super::super::rids::api::CheckRid,
#[builder(default, into)]
#[serde(
rename = "checkImplementationIndex",
skip_serializing_if = "Option::is_none",
default
)]
check_implementation_index: Option<i32>,
#[serde(rename = "dataReviewRid")]
data_review_rid: super::super::super::rids::api::DataReviewRid,
#[builder(custom(type = super::AutomaticCheckEvaluationState, convert = Box::new))]
#[serde(rename = "state")]
state: Box<super::AutomaticCheckEvaluationState>,
}
impl AutomaticCheckEvaluation {
#[inline]
pub fn rid(
&self,
) -> &super::super::super::super::api::rids::AutomaticCheckEvaluationRid {
&self.rid
}
#[inline]
pub fn check_rid(&self) -> &super::super::super::rids::api::CheckRid {
&self.check_rid
}
#[inline]
pub fn check_implementation_index(&self) -> Option<i32> {
self.check_implementation_index.as_ref().map(|o| *o)
}
#[inline]
pub fn data_review_rid(&self) -> &super::super::super::rids::api::DataReviewRid {
&self.data_review_rid
}
#[inline]
pub fn state(&self) -> &super::AutomaticCheckEvaluationState {
&*self.state
}
}