amazon_spapi/models/fulfillment_inbound_2024_03_20/
window.rs

1/*
2 * The Selling Partner API for FBA inbound operations.
3 *
4 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5 *
6 * The version of the OpenAPI document: 2024-03-20
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Window : Contains a start and end DateTime representing a time range.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Window {
17    /// The timestamp at which this Window can no longer be edited.
18    #[serde(rename = "editableUntil", skip_serializing_if = "Option::is_none")]
19    pub editable_until: Option<String>,
20    /// The end timestamp of the window.
21    #[serde(rename = "end")]
22    pub end: String,
23    /// The start timestamp of the window.
24    #[serde(rename = "start")]
25    pub start: String,
26}
27
28impl Window {
29    /// Contains a start and end DateTime representing a time range.
30    pub fn new(end: String, start: String) -> Window {
31        Window {
32            editable_until: None,
33            end,
34            start,
35        }
36    }
37}
38