libtad-models 0.2.0

Time and Date API models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::IncludedExcluded;
use crate::holidays::Holiday;
use serde::Deserialize;

#[derive(Debug, Deserialize)]
/// A holiday event which occurs in a requested period.
pub struct BusinessHoliday {
    /// Specifying whether or not the holidays in the result list were included or excluded when
    /// queried.
    pub r#type: Option<IncludedExcluded>,

    /// The number of holidays in the results.
    pub count: Option<i32>,

    /// Holidays which occur in the requested period.
    pub list: Option<Vec<Holiday>>,
}