amazon_spapi/models/services/
appointment_slot_report.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/// AppointmentSlotReport : Availability information as per the service context queried.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AppointmentSlotReport {
17    /// Defines the type of slots.
18    #[serde(rename = "schedulingType", skip_serializing_if = "Option::is_none")]
19    pub scheduling_type: Option<SchedulingType>,
20    /// Start Time from which the appointment slots are generated in ISO 8601 format.
21    #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
22    pub start_time: Option<String>,
23    /// End Time up to which the appointment slots are generated in ISO 8601 format.
24    #[serde(rename = "endTime", skip_serializing_if = "Option::is_none")]
25    pub end_time: Option<String>,
26    /// A list of time windows along with associated capacity in which the service can be performed.
27    #[serde(rename = "appointmentSlots", skip_serializing_if = "Option::is_none")]
28    pub appointment_slots: Option<Vec<models::services::AppointmentSlot>>,
29}
30
31impl AppointmentSlotReport {
32    /// Availability information as per the service context queried.
33    pub fn new() -> AppointmentSlotReport {
34        AppointmentSlotReport {
35            scheduling_type: None,
36            start_time: None,
37            end_time: None,
38            appointment_slots: None,
39        }
40    }
41}
42/// Defines the type of slots.
43#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
44pub enum SchedulingType {
45    #[serde(rename = "REAL_TIME_SCHEDULING")]
46    RealTimeScheduling,
47    #[serde(rename = "NON_REAL_TIME_SCHEDULING")]
48    NonRealTimeScheduling,
49}
50
51impl Default for SchedulingType {
52    fn default() -> SchedulingType {
53        Self::RealTimeScheduling
54    }
55}
56