amazon_spapi/models/fulfillment_inbound_v0/
error_reason.rs

1/*
2 * Selling Partner API for Fulfillment Inbound
3 *
4 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ErrorReason : The reason that the ASIN is invalid.
15/// The reason that the ASIN is invalid.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum ErrorReason {
18    #[serde(rename = "DoesNotExist")]
19    DoesNotExist,
20    #[serde(rename = "InvalidASIN")]
21    InvalidAsin,
22
23}
24
25impl std::fmt::Display for ErrorReason {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::DoesNotExist => write!(f, "DoesNotExist"),
29            Self::InvalidAsin => write!(f, "InvalidASIN"),
30        }
31    }
32}
33
34impl Default for ErrorReason {
35    fn default() -> ErrorReason {
36        Self::DoesNotExist
37    }
38}
39