nominal_api/conjure/objects/ingest/api/
ingest_response.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 IngestResponse {
16 #[builder(custom(type = super::IngestDetails, convert = Box::new))]
17 #[serde(rename = "details")]
18 details: Box<super::IngestDetails>,
19 #[builder(default, into)]
20 #[serde(rename = "ingestJobRid", skip_serializing_if = "Option::is_none", default)]
21 ingest_job_rid: Option<super::IngestJobRid>,
22}
23impl IngestResponse {
24 #[inline]
26 pub fn new(details: super::IngestDetails) -> Self {
27 Self::builder().details(details).build()
28 }
29 #[inline]
30 pub fn details(&self) -> &super::IngestDetails {
31 &*self.details
32 }
33 #[inline]
34 pub fn ingest_job_rid(&self) -> Option<&super::IngestJobRid> {
35 self.ingest_job_rid.as_ref().map(|o| &*o)
36 }
37}