amazon_spapi/models/services/
fixed_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/// FixedSlotCapacity : Response schema for the `getFixedSlotCapacity` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FixedSlotCapacity {
17    /// Resource Identifier.
18    #[serde(rename = "resourceId", skip_serializing_if = "Option::is_none")]
19    pub resource_id: Option<String>,
20    /// The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360.
21    #[serde(rename = "slotDuration", skip_serializing_if = "Option::is_none")]
22    pub slot_duration: Option<f64>,
23    /// Array of capacity slots in fixed slot format.
24    #[serde(rename = "capacities", skip_serializing_if = "Option::is_none")]
25    pub capacities: Option<Vec<models::services::FixedSlot>>,
26    /// Next page token, if there are more pages.
27    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
28    pub next_page_token: Option<String>,
29}
30
31impl FixedSlotCapacity {
32    /// Response schema for the `getFixedSlotCapacity` operation.
33    pub fn new() -> FixedSlotCapacity {
34        FixedSlotCapacity {
35            resource_id: None,
36            slot_duration: None,
37            capacities: None,
38            next_page_token: None,
39        }
40    }
41}
42