amazon_spapi/models/shipping_v2/
time_of_day.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/// TimeOfDay : Denotes time of the day, used for defining opening or closing time of access points
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TimeOfDay {
17    /// Denotes hour of the day, used for defining opening or closing time of access points
18    #[serde(rename = "hourOfDay", skip_serializing_if = "Option::is_none")]
19    pub hour_of_day: Option<i32>,
20    /// Denotes minute of the hour, used for defining opening or closing time of access points
21    #[serde(rename = "minuteOfHour", skip_serializing_if = "Option::is_none")]
22    pub minute_of_hour: Option<i32>,
23    /// Denotes second of the minute, used for defining opening or closing time of access points
24    #[serde(rename = "secondOfMinute", skip_serializing_if = "Option::is_none")]
25    pub second_of_minute: Option<i32>,
26}
27
28impl TimeOfDay {
29    /// Denotes time of the day, used for defining opening or closing time of access points
30    pub fn new() -> TimeOfDay {
31        TimeOfDay {
32            hour_of_day: None,
33            minute_of_hour: None,
34            second_of_minute: None,
35        }
36    }
37}
38