amazon_spapi/models/services/set_appointment_response.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/// SetAppointmentResponse : Response schema for the `addAppointmentForServiceJobByServiceJobId` and `rescheduleAppointmentForServiceJobByServiceJobId` operations.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SetAppointmentResponse {
17 /// The appointment identifier.
18 #[serde(rename = "appointmentId", skip_serializing_if = "Option::is_none")]
19 pub appointment_id: Option<String>,
20 /// A list of warnings returned in the sucessful execution response of an API request.
21 #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
22 pub warnings: Option<Vec<models::services::Warning>>,
23 /// A list of error responses returned when a request is unsuccessful.
24 #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
25 pub errors: Option<Vec<models::services::Error>>,
26}
27
28impl SetAppointmentResponse {
29 /// Response schema for the `addAppointmentForServiceJobByServiceJobId` and `rescheduleAppointmentForServiceJobByServiceJobId` operations.
30 pub fn new() -> SetAppointmentResponse {
31 SetAppointmentResponse {
32 appointment_id: None,
33 warnings: None,
34 errors: None,
35 }
36 }
37}
38