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};

/// CreateUploadDestinationResponse : The response schema for the createUploadDestination operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateUploadDestinationResponse {
    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
    pub payload: Option<Box<models::uploads_2020_11_01::UploadDestination>>,
    /// A list of error responses returned when a request is unsuccessful.
    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
    pub errors: Option<Vec<models::uploads_2020_11_01::Error>>,
}

impl CreateUploadDestinationResponse {
    /// The response schema for the createUploadDestination operation.
    pub fn new() -> CreateUploadDestinationResponse {
        CreateUploadDestinationResponse {
            payload: None,
            errors: None,
        }
    }
}