amazon_spapi/models/services/
update_reservation_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/// UpdateReservationResponse : Response schema for the `updateReservation` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateReservationResponse {
17    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
18    pub payload: Option<Box<models::services::UpdateReservationRecord>>,
19    /// A list of error responses returned when a request is unsuccessful.
20    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21    pub errors: Option<Vec<models::services::Error>>,
22}
23
24impl UpdateReservationResponse {
25    /// Response schema for the `updateReservation` operation.
26    pub fn new() -> UpdateReservationResponse {
27        UpdateReservationResponse {
28            payload: None,
29            errors: None,
30        }
31    }
32}
33