nominal_api/conjure/objects/scout/checks/api/
submitted_job.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct SubmittedJob {
13 #[serde(rename = "jobRid")]
14 job_rid: super::JobRid,
15 #[builder(custom(type = super::JobSpec, convert = Box::new))]
16 #[serde(rename = "jobSpec")]
17 job_spec: Box<super::JobSpec>,
18}
19impl SubmittedJob {
20 #[inline]
22 pub fn new(job_rid: super::JobRid, job_spec: super::JobSpec) -> Self {
23 Self::builder().job_rid(job_rid).job_spec(job_spec).build()
24 }
25 #[inline]
26 pub fn job_rid(&self) -> &super::JobRid {
27 &self.job_rid
28 }
29 #[inline]
30 pub fn job_spec(&self) -> &super::JobSpec {
31 &*self.job_spec
32 }
33}