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};

/// VehicleStandard : Standard followed to uniquely identify a vehicle.
/// Standard followed to uniquely identify a vehicle.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum VehicleStandard {
    #[serde(rename = "KTYPE")]
    Ktype,
    #[serde(rename = "AMAZON_ID")]
    AmazonId,

}

impl std::fmt::Display for VehicleStandard {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Ktype => write!(f, "KTYPE"),
            Self::AmazonId => write!(f, "AMAZON_ID"),
        }
    }
}

impl Default for VehicleStandard {
    fn default() -> VehicleStandard {
        Self::Ktype
    }
}