amazon_spapi/models/vehicles_2024_11_01/
engine_output_unit.rs

1/*
2 * The Selling Partner API for Automotive.
3 *
4 * The Selling Partner API for Automotive provides programmatic access to information needed by selling partners to provide compatibility information about their listed products.
5 *
6 * The version of the OpenAPI document: 2024-11-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EngineOutputUnit : Unit for measuring engine power.
15/// Unit for measuring engine power.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum EngineOutputUnit {
18    #[serde(rename = "KILOWATT")]
19    Kilowatt,
20    #[serde(rename = "HORSEPOWER")]
21    Horsepower,
22
23}
24
25impl std::fmt::Display for EngineOutputUnit {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Kilowatt => write!(f, "KILOWATT"),
29            Self::Horsepower => write!(f, "HORSEPOWER"),
30        }
31    }
32}
33
34impl Default for EngineOutputUnit {
35    fn default() -> EngineOutputUnit {
36        Self::Kilowatt
37    }
38}
39