Skip to main content

nominal_api/conjure/objects/ingest/api/
ingest_request.rs

1#[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 IngestRequest {
13    #[builder(custom(type = super::IngestOptions, convert = Box::new))]
14    #[serde(rename = "options")]
15    options: Box<super::IngestOptions>,
16}
17impl IngestRequest {
18    /// Constructs a new instance of the type.
19    #[inline]
20    pub fn new(options: super::IngestOptions) -> Self {
21        Self::builder().options(options).build()
22    }
23    #[inline]
24    pub fn options(&self) -> &super::IngestOptions {
25        &*self.options
26    }
27}