amazon_spapi/models/services/
appointment_time_input.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/// AppointmentTimeInput : The input appointment time details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AppointmentTimeInput {
17    /// The date, time in UTC for the start time of an appointment in ISO 8601 format.
18    #[serde(rename = "startTime")]
19    pub start_time: String,
20    /// The duration of an appointment in minutes.
21    #[serde(rename = "durationInMinutes", skip_serializing_if = "Option::is_none")]
22    pub duration_in_minutes: Option<i32>,
23}
24
25impl AppointmentTimeInput {
26    /// The input appointment time details.
27    pub fn new(start_time: String) -> AppointmentTimeInput {
28        AppointmentTimeInput {
29            start_time,
30            duration_in_minutes: None,
31        }
32    }
33}
34