#[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 IngestResponse {
#[builder(custom(type = super::IngestDetails, convert = Box::new))]
#[serde(rename = "details")]
details: Box<super::IngestDetails>,
#[builder(default, into)]
#[serde(rename = "ingestJobRid", skip_serializing_if = "Option::is_none", default)]
ingest_job_rid: Option<super::IngestJobRid>,
}
impl IngestResponse {
#[inline]
pub fn new(details: super::IngestDetails) -> Self {
Self::builder().details(details).build()
}
#[inline]
pub fn details(&self) -> &super::IngestDetails {
&*self.details
}
#[inline]
pub fn ingest_job_rid(&self) -> Option<&super::IngestJobRid> {
self.ingest_job_rid.as_ref().map(|o| &*o)
}
}