Skip to main content

amazon_spapi/models/services/
reschedule_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/// RescheduleAppointmentRequest : Input for rescheduled appointment operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RescheduleAppointmentRequest {
17    #[serde(rename = "appointmentTime")]
18    pub appointment_time: Box<models::services::AppointmentTimeInput>,
19    /// The appointment reschedule reason code.
20    #[serde(rename = "rescheduleReasonCode")]
21    pub reschedule_reason_code: String,
22}
23
24impl RescheduleAppointmentRequest {
25    /// Input for rescheduled appointment operation.
26    pub fn new(appointment_time: models::services::AppointmentTimeInput, reschedule_reason_code: String) -> RescheduleAppointmentRequest {
27        RescheduleAppointmentRequest {
28            appointment_time: Box::new(appointment_time),
29            reschedule_reason_code,
30        }
31    }
32}
33