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