#[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 JobReport {
#[builder(custom(type = super::JobStatus, convert = Box::new))]
#[serde(rename = "jobStatus")]
job_status: Box<super::JobStatus>,
#[serde(rename = "jobRid")]
job_rid: super::JobRid,
#[serde(rename = "submittedAt")]
submitted_at: conjure_object::DateTime<conjure_object::Utc>,
}
impl JobReport {
#[inline]
pub fn new(
job_status: super::JobStatus,
job_rid: super::JobRid,
submitted_at: conjure_object::DateTime<conjure_object::Utc>,
) -> Self {
Self::builder()
.job_status(job_status)
.job_rid(job_rid)
.submitted_at(submitted_at)
.build()
}
#[inline]
pub fn job_status(&self) -> &super::JobStatus {
&*self.job_status
}
#[inline]
pub fn job_rid(&self) -> &super::JobRid {
&self.job_rid
}
#[inline]
pub fn submitted_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
self.submitted_at
}
}