amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Supply Sources
 *
 * Manage configurations and capabilities of seller supply sources.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// TimeUnit : The time unit
/// The time unit
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TimeUnit {
    #[serde(rename = "Hours")]
    Hours,
    #[serde(rename = "Minutes")]
    Minutes,
    #[serde(rename = "Days")]
    Days,

}

impl std::fmt::Display for TimeUnit {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Hours => write!(f, "Hours"),
            Self::Minutes => write!(f, "Minutes"),
            Self::Days => write!(f, "Days"),
        }
    }
}

impl Default for TimeUnit {
    fn default() -> TimeUnit {
        Self::Hours
    }
}