amazon_spapi/models/services/
update_reservation_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/// UpdateReservationRequest : Request schema for the `updateReservation` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateReservationRequest {
17    /// Resource (store) identifier.
18    #[serde(rename = "resourceId")]
19    pub resource_id: String,
20    #[serde(rename = "reservation")]
21    pub reservation: Box<models::services::Reservation>,
22}
23
24impl UpdateReservationRequest {
25    /// Request schema for the `updateReservation` operation.
26    pub fn new(resource_id: String, reservation: models::services::Reservation) -> UpdateReservationRequest {
27        UpdateReservationRequest {
28            resource_id,
29            reservation: Box::new(reservation),
30        }
31    }
32}
33