Skip to main content

nominal_api/conjure/objects/ingest/workflow/api/
presigned_file_input.rs

1#[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 PresignedFileInput {
16    #[serde(rename = "url")]
17    url: super::PresignedUrl,
18    #[builder(custom(type = super::ValidatedFileInput, convert = Box::new))]
19    #[serde(rename = "input")]
20    input: Box<super::ValidatedFileInput>,
21}
22impl PresignedFileInput {
23    /// Constructs a new instance of the type.
24    #[inline]
25    pub fn new(url: super::PresignedUrl, input: super::ValidatedFileInput) -> Self {
26        Self::builder().url(url).input(input).build()
27    }
28    #[inline]
29    pub fn url(&self) -> &super::PresignedUrl {
30        &self.url
31    }
32    #[inline]
33    pub fn input(&self) -> &super::ValidatedFileInput {
34        &*self.input
35    }
36}