Skip to main content

amazon_spapi/models/fulfillment_outbound_2020_07_01/
date_range.rs

1/*
2 * Selling Partner APIs for Fulfillment Outbound
3 *
4 * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
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/// DateRange : The time range within which something (for example, a delivery) will occur.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DateRange {
17    /// Date timestamp
18    #[serde(rename = "earliest")]
19    pub earliest: String,
20    /// Date timestamp
21    #[serde(rename = "latest")]
22    pub latest: String,
23}
24
25impl DateRange {
26    /// The time range within which something (for example, a delivery) will occur.
27    pub fn new(earliest: String, latest: String) -> DateRange {
28        DateRange {
29            earliest,
30            latest,
31        }
32    }
33}
34