#[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 SubmittedJob {
#[serde(rename = "jobRid")]
job_rid: super::JobRid,
#[builder(custom(type = super::JobSpec, convert = Box::new))]
#[serde(rename = "jobSpec")]
job_spec: Box<super::JobSpec>,
}
impl SubmittedJob {
#[inline]
pub fn new(job_rid: super::JobRid, job_spec: super::JobSpec) -> Self {
Self::builder().job_rid(job_rid).job_spec(job_spec).build()
}
#[inline]
pub fn job_rid(&self) -> &super::JobRid {
&self.job_rid
}
#[inline]
pub fn job_spec(&self) -> &super::JobSpec {
&*self.job_spec
}
}