Skip to main content

amazon_spapi/models/services/
fixed_slot.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/// FixedSlot : In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FixedSlot {
17    /// Start date time of slot in ISO 8601 format with precision of seconds.
18    #[serde(rename = "startDateTime", skip_serializing_if = "Option::is_none")]
19    pub start_date_time: Option<String>,
20    /// Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule.
21    #[serde(rename = "scheduledCapacity", skip_serializing_if = "Option::is_none")]
22    pub scheduled_capacity: Option<i32>,
23    /// Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations.
24    #[serde(rename = "availableCapacity", skip_serializing_if = "Option::is_none")]
25    pub available_capacity: Option<i32>,
26    /// Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders.
27    #[serde(rename = "encumberedCapacity", skip_serializing_if = "Option::is_none")]
28    pub encumbered_capacity: Option<i32>,
29    /// Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch.
30    #[serde(rename = "reservedCapacity", skip_serializing_if = "Option::is_none")]
31    pub reserved_capacity: Option<i32>,
32}
33
34impl FixedSlot {
35    /// In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
36    pub fn new() -> FixedSlot {
37        FixedSlot {
38            start_date_time: None,
39            scheduled_capacity: None,
40            available_capacity: None,
41            encumbered_capacity: None,
42            reserved_capacity: None,
43        }
44    }
45}
46