nominal_api/conjure/objects/scout/datareview/api/
automatic_check_evaluation.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct AutomaticCheckEvaluation {
16 #[serde(rename = "rid")]
17 rid: conjure_object::ResourceIdentifier,
18 #[serde(rename = "checkRid")]
19 check_rid: super::super::super::rids::api::CheckRid,
20 #[builder(default, into)]
21 #[serde(
22 rename = "checkImplementationIndex",
23 skip_serializing_if = "Option::is_none",
24 default
25 )]
26 check_implementation_index: Option<i32>,
27 #[serde(rename = "dataReviewRid")]
28 data_review_rid: super::super::super::rids::api::DataReviewRid,
29 #[builder(custom(type = super::AutomaticCheckEvaluationState, convert = Box::new))]
30 #[serde(rename = "state")]
31 state: Box<super::AutomaticCheckEvaluationState>,
32}
33impl AutomaticCheckEvaluation {
34 #[inline]
35 pub fn rid(&self) -> &conjure_object::ResourceIdentifier {
36 &self.rid
37 }
38 #[inline]
39 pub fn check_rid(&self) -> &super::super::super::rids::api::CheckRid {
40 &self.check_rid
41 }
42 #[inline]
45 pub fn check_implementation_index(&self) -> Option<i32> {
46 self.check_implementation_index.as_ref().map(|o| *o)
47 }
48 #[inline]
49 pub fn data_review_rid(&self) -> &super::super::super::rids::api::DataReviewRid {
50 &self.data_review_rid
51 }
52 #[inline]
53 pub fn state(&self) -> &super::AutomaticCheckEvaluationState {
54 &*self.state
55 }
56}