amazon_spapi/models/services/
update_schedule_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/// UpdateScheduleRequest : Request schema for the `updateSchedule` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateScheduleRequest {
17    /// List of `AvailabilityRecord`s to represent the capacity of a resource over a time range.
18    #[serde(rename = "schedules")]
19    pub schedules: Vec<models::services::AvailabilityRecord>,
20}
21
22impl UpdateScheduleRequest {
23    /// Request schema for the `updateSchedule` operation.
24    pub fn new(schedules: Vec<models::services::AvailabilityRecord>) -> UpdateScheduleRequest {
25        UpdateScheduleRequest {
26            schedules,
27        }
28    }
29}
30