libtad_models/date_calculator/weekdays.rs
1use super::IncludedExcluded;
2use serde::Deserialize;
3
4#[derive(Debug, Deserialize)]
5/// The spread of excluded or included weekdays in includeddays.
6pub struct Weekdays {
7 /// Specifies whether or not the weekdays counted were part of an included or excluded filter.
8 pub r#type: IncludedExcluded,
9
10 /// How many days in total have been counted.
11 pub count: i32,
12
13 /// Count for Mondays.
14 pub mon: i32,
15
16 /// Count for Tuesdays.
17 pub tue: i32,
18
19 /// Count for Wednesdays.
20 pub wed: i32,
21
22 /// Count for Thursdays.
23 pub thu: i32,
24
25 /// Count for Fridays.
26 pub fri: i32,
27
28 /// Count for Saturdays.
29 pub sat: i32,
30
31 /// Count for Sundays.
32 pub sun: i32,
33}