amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Supply Sources
 *
 * Manage configurations and capabilities of seller supply sources.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// ThroughputConfig : The throughput configuration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ThroughputConfig {
    #[serde(rename = "throughputCap", skip_serializing_if = "Option::is_none")]
    pub throughput_cap: Option<Box<models::supply_sources_2020_07_01::ThroughputCap>>,
    #[serde(rename = "throughputUnit")]
    pub throughput_unit: models::supply_sources_2020_07_01::ThroughputUnit,
}

impl ThroughputConfig {
    /// The throughput configuration.
    pub fn new(throughput_unit: models::supply_sources_2020_07_01::ThroughputUnit) -> ThroughputConfig {
        ThroughputConfig {
            throughput_cap: None,
            throughput_unit,
        }
    }
}