amazon_spapi/models/services/
appointment_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/// AppointmentSlot : A time window along with associated capacity in which the service can be performed.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AppointmentSlot {
17    /// Time window start time in ISO 8601 format.
18    #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
19    pub start_time: Option<String>,
20    /// Time window end time in ISO 8601 format.
21    #[serde(rename = "endTime", skip_serializing_if = "Option::is_none")]
22    pub end_time: Option<String>,
23    /// Number of resources for which a slot can be reserved.
24    #[serde(rename = "capacity", skip_serializing_if = "Option::is_none")]
25    pub capacity: Option<i32>,
26}
27
28impl AppointmentSlot {
29    /// A time window along with associated capacity in which the service can be performed.
30    pub fn new() -> AppointmentSlot {
31        AppointmentSlot {
32            start_time: None,
33            end_time: None,
34            capacity: None,
35        }
36    }
37}
38