amazon_spapi/models/shipping_v2/
operating_hours.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// OperatingHours : The hours in which the access point shall remain operational
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OperatingHours {
17    #[serde(rename = "closingTime", skip_serializing_if = "Option::is_none")]
18    pub closing_time: Option<Box<models::shipping_v2::TimeOfDay>>,
19    #[serde(rename = "openingTime", skip_serializing_if = "Option::is_none")]
20    pub opening_time: Option<Box<models::shipping_v2::TimeOfDay>>,
21    /// midDayClosures operating hours array
22    #[serde(rename = "midDayClosures", skip_serializing_if = "Option::is_none")]
23    pub mid_day_closures: Option<Vec<models::shipping_v2::TimeOfDay>>,
24}
25
26impl OperatingHours {
27    /// The hours in which the access point shall remain operational
28    pub fn new() -> OperatingHours {
29        OperatingHours {
30            closing_time: None,
31            opening_time: None,
32            mid_day_closures: None,
33        }
34    }
35}
36