pub struct HolidayState {
pub iso: String,
pub id: i32,
pub abbrev: String,
pub name: String,
pub exception: Option<String>,
}Expand description
A holiday event in a specific state.
Fields§
§iso: StringAn ISO 3166-1 country or ISO 3166-2 country state code.
See also: https://services.timeanddate.com/api/doc/v3/bi01.html#ISO3166
id: i32Unique id of the state/subdivision.
abbrev: StringAbbreviation of the state/subdivision.
name: StringCommon name of the state/subdivision.
exception: Option<String>Eventual exception if the holiday does not affect the whole state/subdivision.
Trait Implementations§
Source§impl Debug for HolidayState
impl Debug for HolidayState
Source§impl<'de> Deserialize<'de> for HolidayState
impl<'de> Deserialize<'de> for HolidayState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HolidayState
impl RefUnwindSafe for HolidayState
impl Send for HolidayState
impl Sync for HolidayState
impl Unpin for HolidayState
impl UnwindSafe for HolidayState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more