pub struct RestDatesResponse { /* private fields */ }Expand description
Rest-date calendar response: three categories of non-working days.
Implementations§
Source§impl RestDatesResponse
impl RestDatesResponse
Sourcepub fn unique_dates(&self) -> Result<HashSet<NaiveDate>>
pub fn unique_dates(&self) -> Result<HashSet<NaiveDate>>
Merges all three categories into one deduplicated set; date strings that fail to parse are skipped rather than failing the calendar.
Trait Implementations§
Source§impl Debug for RestDatesResponse
impl Debug for RestDatesResponse
Source§impl<'de> Deserialize<'de> for RestDatesResponse
impl<'de> Deserialize<'de> for RestDatesResponse
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 RestDatesResponse
impl RefUnwindSafe for RestDatesResponse
impl Send for RestDatesResponse
impl Sync for RestDatesResponse
impl Unpin for RestDatesResponse
impl UnsafeUnpin for RestDatesResponse
impl UnwindSafe for RestDatesResponse
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