amazon_spapi/models/services/
range_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/// RangeSlot : Capacity slots represented in a format similar to availability rules.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RangeSlot {
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    /// End date time of slot in ISO 8601 format with precision of seconds.
21    #[serde(rename = "endDateTime", skip_serializing_if = "Option::is_none")]
22    pub end_date_time: Option<String>,
23    /// Capacity of the slot.
24    #[serde(rename = "capacity", skip_serializing_if = "Option::is_none")]
25    pub capacity: Option<i32>,
26}
27
28impl RangeSlot {
29    /// Capacity slots represented in a format similar to availability rules.
30    pub fn new() -> RangeSlot {
31        RangeSlot {
32            start_date_time: None,
33            end_date_time: None,
34            capacity: None,
35        }
36    }
37}
38