amazon_spapi/models/fba_inbound/
error.rs

1/*
2 * Selling Partner API for FBA Inbound Eligibilty
3 *
4 * With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.
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/// Error : Error response returned when the request is unsuccessful.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Error {
17    /// An error code that identifies the type of error that occurred.
18    #[serde(rename = "code")]
19    pub code: String,
20    /// A message that describes the error condition in a human-readable form.
21    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
22    pub message: Option<String>,
23    /// Additional information that can help the caller understand or fix the issue.
24    #[serde(rename = "details", skip_serializing_if = "Option::is_none")]
25    pub details: Option<String>,
26}
27
28impl Error {
29    /// Error response returned when the request is unsuccessful.
30    pub fn new(code: String) -> Error {
31        Error {
32            code,
33            message: None,
34            details: None,
35        }
36    }
37}
38