amazon_spapi/models/services/
service_document_upload_destination.rs

1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ServiceDocumentUploadDestination : Information about an upload destination.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ServiceDocumentUploadDestination {
17    /// The unique identifier to be used by APIs that reference the upload destination.
18    #[serde(rename = "uploadDestinationId")]
19    pub upload_destination_id: String,
20    /// The URL to which to upload the file.
21    #[serde(rename = "url")]
22    pub url: String,
23    #[serde(rename = "encryptionDetails")]
24    pub encryption_details: Box<models::services::EncryptionDetails>,
25    /// The headers to include in the upload request.
26    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
27    pub headers: Option<serde_json::Value>,
28}
29
30impl ServiceDocumentUploadDestination {
31    /// Information about an upload destination.
32    pub fn new(upload_destination_id: String, url: String, encryption_details: models::services::EncryptionDetails) -> ServiceDocumentUploadDestination {
33        ServiceDocumentUploadDestination {
34            upload_destination_id,
35            url,
36            encryption_details: Box::new(encryption_details),
37            headers: None,
38        }
39    }
40}
41