amazon_spapi/models/vehicles_2024_11_01/
engine_output.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/// EngineOutput : Engine power output of vehicle.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EngineOutput {
17    /// Engine power value in specified unit.
18    #[serde(rename = "value")]
19    pub value: f64,
20    #[serde(rename = "unit")]
21    pub unit: models::vehicles_2024_11_01::EngineOutputUnit,
22}
23
24impl EngineOutput {
25    /// Engine power output of vehicle.
26    pub fn new(value: f64, unit: models::vehicles_2024_11_01::EngineOutputUnit) -> EngineOutput {
27        EngineOutput {
28            value,
29            unit,
30        }
31    }
32}
33