Skip to main content

amazon_spapi/models/fba_inventory/
add_inventory_response.rs

1/*
2 * Selling Partner API for FBA Inventory
3 *
4 * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AddInventoryResponse : The response schema for the AddInventory operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AddInventoryResponse {
17    /// A list of error responses returned when a request is unsuccessful.
18    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
19    pub errors: Option<Vec<models::fba_inventory::Error>>,
20}
21
22impl AddInventoryResponse {
23    /// The response schema for the AddInventory operation.
24    pub fn new() -> AddInventoryResponse {
25        AddInventoryResponse {
26            errors: None,
27        }
28    }
29}
30