amazon_spapi/models/services/
appointment_slot_report.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AppointmentSlotReport {
17 #[serde(rename = "schedulingType", skip_serializing_if = "Option::is_none")]
19 pub scheduling_type: Option<SchedulingType>,
20 #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
22 pub start_time: Option<String>,
23 #[serde(rename = "endTime", skip_serializing_if = "Option::is_none")]
25 pub end_time: Option<String>,
26 #[serde(rename = "appointmentSlots", skip_serializing_if = "Option::is_none")]
28 pub appointment_slots: Option<Vec<models::services::AppointmentSlot>>,
29}
30
31impl AppointmentSlotReport {
32 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#[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