amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Services
 *
 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FixedSlot : In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FixedSlot {
    /// Start date time of slot in ISO 8601 format with precision of seconds.
    #[serde(rename = "startDateTime", skip_serializing_if = "Option::is_none")]
    pub start_date_time: Option<String>,
    /// Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule.
    #[serde(rename = "scheduledCapacity", skip_serializing_if = "Option::is_none")]
    pub scheduled_capacity: Option<i32>,
    /// Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations.
    #[serde(rename = "availableCapacity", skip_serializing_if = "Option::is_none")]
    pub available_capacity: Option<i32>,
    /// Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders.
    #[serde(rename = "encumberedCapacity", skip_serializing_if = "Option::is_none")]
    pub encumbered_capacity: Option<i32>,
    /// Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch.
    #[serde(rename = "reservedCapacity", skip_serializing_if = "Option::is_none")]
    pub reserved_capacity: Option<i32>,
}

impl FixedSlot {
    /// In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
    pub fn new() -> FixedSlot {
        FixedSlot {
            start_date_time: None,
            scheduled_capacity: None,
            available_capacity: None,
            encumbered_capacity: None,
            reserved_capacity: None,
        }
    }
}