libtad_models/date_calculator/business_holiday.rs
1use super::IncludedExcluded;
2use crate::holidays::Holiday;
3use serde::Deserialize;
4
5#[derive(Debug, Deserialize)]
6/// A holiday event which occurs in a requested period.
7pub struct BusinessHoliday {
8 /// Specifying whether or not the holidays in the result list were included or excluded when
9 /// queried.
10 pub r#type: Option<IncludedExcluded>,
11
12 /// The number of holidays in the results.
13 pub count: Option<i32>,
14
15 /// Holidays which occur in the requested period.
16 pub list: Option<Vec<Holiday>>,
17}