amazon_spapi/models/services/
add_appointment_request.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/// AddAppointmentRequest : Input for add appointment operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AddAppointmentRequest {
17    #[serde(rename = "appointmentTime")]
18    pub appointment_time: Box<models::services::AppointmentTimeInput>,
19}
20
21impl AddAppointmentRequest {
22    /// Input for add appointment operation.
23    pub fn new(appointment_time: models::services::AppointmentTimeInput) -> AddAppointmentRequest {
24        AddAppointmentRequest {
25            appointment_time: Box::new(appointment_time),
26        }
27    }
28}
29