square_api_client/models/
business_hours_period.rs

1//! Model struct for BusinessHoursPeriod type
2
3use serde::{Deserialize, Serialize};
4
5use super::enums::DayOfWeek;
6
7/// The hours of operation for a location.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct BusinessHoursPeriod {
10    /// The day of the week for this time period.
11    pub day_of_week: Option<DayOfWeek>,
12    /// The end time of a business hours period, specified in local time using partial-time RFC 3339
13    /// format. For example, `21:00:00` for a period ending at 9:00 in the evening. Note that the
14    /// seconds value is always :00, but it is appended for conformance to the RFC.
15    pub end_local_time: Option<String>,
16    /// The start time of a business hours period, specified in local time using partial-time RFC
17    /// 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening. Note that
18    /// the seconds value is always :00, but it is appended for conformance to the RFC.
19    pub start_local_time: Option<String>,
20}