amazon_spapi/models/shipping_v2/time_window.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/// TimeWindow : The start and end time that specifies the time interval of an event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TimeWindow {
17 /// The start time of the time window.
18 #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
19 pub start: Option<String>,
20 /// The end time of the time window.
21 #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
22 pub end: Option<String>,
23}
24
25impl TimeWindow {
26 /// The start and end time that specifies the time interval of an event.
27 pub fn new() -> TimeWindow {
28 TimeWindow {
29 start: None,
30 end: None,
31 }
32 }
33}
34