amazon_spapi/models/supply_sources_2020_07_01/
throughput_config.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ThroughputConfig {
17 #[serde(rename = "throughputCap", skip_serializing_if = "Option::is_none")]
18 pub throughput_cap: Option<Box<models::supply_sources_2020_07_01::ThroughputCap>>,
19 #[serde(rename = "throughputUnit")]
20 pub throughput_unit: models::supply_sources_2020_07_01::ThroughputUnit,
21}
22
23impl ThroughputConfig {
24 pub fn new(throughput_unit: models::supply_sources_2020_07_01::ThroughputUnit) -> ThroughputConfig {
26 ThroughputConfig {
27 throughput_cap: None,
28 throughput_unit,
29 }
30 }
31}
32