amazon_spapi/models/services/
range_slot_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/// RangeSlotCapacity : Response schema for the `getRangeSlotCapacity` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RangeSlotCapacity {
17    /// Resource Identifier.
18    #[serde(rename = "resourceId", skip_serializing_if = "Option::is_none")]
19    pub resource_id: Option<String>,
20    /// Array of range capacities where each entry is for a specific capacity type.
21    #[serde(rename = "capacities", skip_serializing_if = "Option::is_none")]
22    pub capacities: Option<Vec<models::services::RangeCapacity>>,
23    /// Next page token, if there are more pages.
24    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
25    pub next_page_token: Option<String>,
26}
27
28impl RangeSlotCapacity {
29    /// Response schema for the `getRangeSlotCapacity` operation.
30    pub fn new() -> RangeSlotCapacity {
31        RangeSlotCapacity {
32            resource_id: None,
33            capacities: None,
34            next_page_token: None,
35        }
36    }
37}
38