amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// UploadDestination : Information about an upload destination.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UploadDestination {
    /// The unique identifier for the upload destination.
    #[serde(rename = "uploadDestinationId", skip_serializing_if = "Option::is_none")]
    pub upload_destination_id: Option<String>,
    /// The URL for the upload destination.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    /// The headers to include in the upload request.
    #[serde(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,
        }
    }
}