amazon_spapi/models/shipping_v2/
exception_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/// ExceptionOperatingHours : Defines exceptions to standard operating hours for certain date ranges.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ExceptionOperatingHours {
17    #[serde(rename = "dateRange", skip_serializing_if = "Option::is_none")]
18    pub date_range: Option<Box<models::shipping_v2::DateRange>>,
19    #[serde(rename = "operatingHours", skip_serializing_if = "Option::is_none")]
20    pub operating_hours: Option<Box<models::shipping_v2::OperatingHours>>,
21}
22
23impl ExceptionOperatingHours {
24    /// Defines exceptions to standard operating hours for certain date ranges.
25    pub fn new() -> ExceptionOperatingHours {
26        ExceptionOperatingHours {
27            date_range: None,
28            operating_hours: None,
29        }
30    }
31}
32