Skip to main content

amazon_spapi/models/uploads_2020_11_01/
create_upload_destination_response.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/// CreateUploadDestinationResponse : The response schema for the createUploadDestination operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateUploadDestinationResponse {
17    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
18    pub payload: Option<Box<models::uploads_2020_11_01::UploadDestination>>,
19    /// A list of error responses returned when a request is unsuccessful.
20    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21    pub errors: Option<Vec<models::uploads_2020_11_01::Error>>,
22}
23
24impl CreateUploadDestinationResponse {
25    /// The response schema for the createUploadDestination operation.
26    pub fn new() -> CreateUploadDestinationResponse {
27        CreateUploadDestinationResponse {
28            payload: None,
29            errors: None,
30        }
31    }
32}
33