/*
* Selling Partner API for Services
*
* With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// DateTimeRange : A range of time.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DateTimeRange {
/// The beginning of the time range. Must be in UTC in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
#[serde(rename = "startTime")]
pub start_time: String,
/// The end of the time range. Must be in UTC in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
#[serde(rename = "endTime")]
pub end_time: String,
}
impl DateTimeRange {
/// A range of time.
pub fn new(start_time: String, end_time: String) -> DateTimeRange {
DateTimeRange {
start_time,
end_time,
}
}
}