1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Selling Partner API for Uploads
 *
 * 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.
 *
 * The version of the OpenAPI document: 2020-11-01
 * 
 * Generated by: https://openapi-generator.tech
 */

/// UploadDestination : Information about an upload destination.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UploadDestination {
    /// The unique identifier for the upload destination.
    #[serde(default, rename = "uploadDestinationId", skip_serializing_if = "Option::is_none")]
    pub upload_destination_id: Option<String>,
    /// The URL for the upload destination.
    #[serde(default, rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    /// The headers to include in the upload request.
    #[serde(default, rename = "headers", skip_serializing_if = "Option::is_none")]
    pub headers: Option<serde_json::Value>,
}

impl UploadDestination {
    /// Information about an upload destination.
    pub fn new() -> UploadDestination {
        UploadDestination {
            upload_destination_id: None,
            url: None,
            headers: None,
        }
    }
}