amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Automotive.
 *
 * The Selling Partner API for Automotive provides programmatic access to information needed by selling partners to provide compatibility information about their listed products.
 *
 * The version of the OpenAPI document: 2024-11-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// EngineOutputUnit : Unit for measuring engine power.
/// Unit for measuring engine power.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum EngineOutputUnit {
    #[serde(rename = "KILOWATT")]
    Kilowatt,
    #[serde(rename = "HORSEPOWER")]
    Horsepower,

}

impl std::fmt::Display for EngineOutputUnit {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Kilowatt => write!(f, "KILOWATT"),
            Self::Horsepower => write!(f, "HORSEPOWER"),
        }
    }
}

impl Default for EngineOutputUnit {
    fn default() -> EngineOutputUnit {
        Self::Kilowatt
    }
}