amazon_spapi/models/services/range_capacity.rs
1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RangeCapacity : Range capacity entity where each entry has a capacity type and corresponding slots.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RangeCapacity {
17 #[serde(rename = "capacityType", skip_serializing_if = "Option::is_none")]
18 pub capacity_type: Option<models::services::CapacityType>,
19 /// Array of capacity slots in range slot format.
20 #[serde(rename = "slots", skip_serializing_if = "Option::is_none")]
21 pub slots: Option<Vec<models::services::RangeSlot>>,
22}
23
24impl RangeCapacity {
25 /// Range capacity entity where each entry has a capacity type and corresponding slots.
26 pub fn new() -> RangeCapacity {
27 RangeCapacity {
28 capacity_type: None,
29 slots: None,
30 }
31 }
32}
33