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

/// EngineOutput : Engine power output of vehicle.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EngineOutput {
    /// Engine power value in specified unit.
    #[serde(rename = "value")]
    pub value: f64,
    #[serde(rename = "unit")]
    pub unit: models::vehicles_2024_11_01::EngineOutputUnit,
}

impl EngineOutput {
    /// Engine power output of vehicle.
    pub fn new(value: f64, unit: models::vehicles_2024_11_01::EngineOutputUnit) -> EngineOutput {
        EngineOutput {
            value,
            unit,
        }
    }
}