1 2 3 4 5 6 7 8 9 10 11 12 13
//! Model struct for BusinessHours type
use serde::{Deserialize, Serialize};
use super::BusinessHoursPeriod;
/// The hours of operation for a location.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct BusinessHours {
/// The list of time periods during which the business is open. There can be at most 10 periods
/// per day.
pub periods: Option<Vec<BusinessHoursPeriod>>,
}