amazon_spapi/models/shipping/time_range.rs
1/*
2 * Selling Partner API for Shipping
3 *
4 * Provides programmatic access to Amazon Shipping APIs. **Note:** If you are new to the Amazon Shipping API, refer to the latest version of <a href=\"https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference\">Amazon Shipping API (v2)</a> on the <a href=\"https://developer-docs.amazon.com/amazon-shipping/\">Amazon Shipping Developer Documentation</a> site.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TimeRange : The time range.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TimeRange {
17 /// The start date and time. This defaults to the current date and time.
18 #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
19 pub start: Option<String>,
20 /// The end date and time. This must come after the value of start. This defaults to the next business day from the start.
21 #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
22 pub end: Option<String>,
23}
24
25impl TimeRange {
26 /// The time range.
27 pub fn new() -> TimeRange {
28 TimeRange {
29 start: None,
30 end: None,
31 }
32 }
33}
34