Skip to main content

amazon_spapi/models/supply_sources_2020_07_01/
duration.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/// Duration : The duration of time.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Duration {
17    /// An unsigned integer that can be only positive or zero.
18    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
19    pub value: Option<i32>,
20    #[serde(rename = "timeUnit", skip_serializing_if = "Option::is_none")]
21    pub time_unit: Option<models::supply_sources_2020_07_01::TimeUnit>,
22}
23
24impl Duration {
25    /// The duration of time.
26    pub fn new() -> Duration {
27        Duration {
28            value: None,
29            time_unit: None,
30        }
31    }
32}
33