amazon_spapi/models/uploads_2020_11_01/
upload_destination.rs

1/*
2 * Selling Partner API for Uploads
3 *
4 * The Uploads API lets you upload files that you can programmatically access using other Selling Partner APIs, such as the A+ Content API and the Messaging API.
5 *
6 * The version of the OpenAPI document: 2020-11-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UploadDestination : Information about an upload destination.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UploadDestination {
17    /// The unique identifier for the upload destination.
18    #[serde(rename = "uploadDestinationId", skip_serializing_if = "Option::is_none")]
19    pub upload_destination_id: Option<String>,
20    /// The URL for the upload destination.
21    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
22    pub url: Option<String>,
23    /// The headers to include in the upload request.
24    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
25    pub headers: Option<serde_json::Value>,
26}
27
28impl UploadDestination {
29    /// Information about an upload destination.
30    pub fn new() -> UploadDestination {
31        UploadDestination {
32            upload_destination_id: None,
33            url: None,
34            headers: None,
35        }
36    }
37}
38