amazon_spapi/models/supply_sources_2020_07_01/
operating_hour.rs

1/*
2 * Selling Partner API for Supply Sources
3 *
4 * Manage configurations and capabilities of seller supply sources.
5 *
6 * The version of the OpenAPI document: 2020-07-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// OperatingHour : The operating hour schema
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OperatingHour {
17    /// The opening time, ISO 8601 formatted timestamp without date, HH:mm.
18    #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
19    pub start_time: Option<String>,
20    /// The closing time, ISO 8601 formatted timestamp without date, HH:mm.
21    #[serde(rename = "endTime", skip_serializing_if = "Option::is_none")]
22    pub end_time: Option<String>,
23}
24
25impl OperatingHour {
26    /// The operating hour schema
27    pub fn new() -> OperatingHour {
28        OperatingHour {
29            start_time: None,
30            end_time: None,
31        }
32    }
33}
34