square_api_client/models/time_range.rs
1//! Model struct for TimeRange type
2
3use serde::Serialize;
4
5use super::DateTime;
6
7/// Represents a generic time range.
8///
9/// Time ranges are customized to be inclusive or exclusive based on the needs of a particular
10/// endpoint. Refer to the relevant endpoint-specific documentation to determine how time ranges are
11/// handled.
12#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
13pub struct TimeRange {
14 /// A datetime value indicating when the time range starts.
15 pub start_at: Option<DateTime>,
16 /// A datetime value indicating when the time range ends.
17 pub end_at: Option<DateTime>,
18}