amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Warehousing and Distribution
 *
 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
 *
 * The version of the OpenAPI document: 2024-05-09
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// PackageVolume : Represents the volume of the package with a unit of measurement.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PackageVolume {
    #[serde(rename = "unitOfMeasurement")]
    pub unit_of_measurement: models::awd_2024_05_09::VolumeUnitOfMeasurement,
    /// The package volume value.
    #[serde(rename = "volume")]
    pub volume: f64,
}

impl PackageVolume {
    /// Represents the volume of the package with a unit of measurement.
    pub fn new(unit_of_measurement: models::awd_2024_05_09::VolumeUnitOfMeasurement, volume: f64) -> PackageVolume {
        PackageVolume {
            unit_of_measurement,
            volume,
        }
    }
}