Skip to main content

nominal_api/conjure/objects/ingest/api/
sign_download_request.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 SignDownloadRequest {
16    #[serde(rename = "path")]
17    path: super::super::super::api::S3Path,
18}
19impl SignDownloadRequest {
20    /// Constructs a new instance of the type.
21    #[inline]
22    pub fn new(path: super::super::super::api::S3Path) -> Self {
23        Self::builder().path(path).build()
24    }
25    /// Path of an object in the Scout uploads bucket, in the form returned by
26    /// CompleteMultipartUploadResponse.location. The caller must be authorized to
27    /// read the workspace whose UUID prefixes the object key.
28    #[inline]
29    pub fn path(&self) -> &super::super::super::api::S3Path {
30        &self.path
31    }
32}