amazon_spapi/models/fulfillment_inbound_v0/
currency_code.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/// CurrencyCode : The currency code.
15/// The currency code.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum CurrencyCode {
18    #[serde(rename = "USD")]
19    Usd,
20    #[serde(rename = "GBP")]
21    Gbp,
22
23}
24
25impl std::fmt::Display for CurrencyCode {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Usd => write!(f, "USD"),
29            Self::Gbp => write!(f, "GBP"),
30        }
31    }
32}
33
34impl Default for CurrencyCode {
35    fn default() -> CurrencyCode {
36        Self::Usd
37    }
38}
39