[−][src]Enum finql::calendar::Holiday
Variants
WeekDay(Weekday)
Though weekends are no holidays, they need to be specified in the calendar. Weekends are assumed to be non-business days.
In most countries, weekends include Saturday (Sat
) and Sunday (Sun
). Unfortunately, there are a few exceptions.
A holiday that occurs every year on the same day.
first
and last
are the first and last year this day is a holiday (inclusively).
Occurs every year, but is moved to next non-weekend day if it falls on a weekday.
Note that Saturday and Sunday here assumed to be weekend days, even if these days
are not defined as weekends in this calendar. If the next Monday is already a holiday,
the date will be moved to the next available business day.
first
and last
are the first and last year this day is a holiday (inclusively).
SingularDay(NaiveDate)
A single holiday which is valid only once in time.
A holiday that is defined in relative days (e.g. -2 for Good Friday) to Easter (Sunday).
A holiday that falls on the nth (or last) weekday of a specific month, e.g. the first Monday in May.
first
and last
are the first and last year this day is a holiday (inclusively).
Trait Implementations
impl Debug for Holiday
[src]
impl<'de> Deserialize<'de> for Holiday
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Holiday> for Holiday
[src]
impl Serialize for Holiday
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Holiday
[src]
Auto Trait Implementations
impl RefUnwindSafe for Holiday
impl Send for Holiday
impl Sync for Holiday
impl Unpin for Holiday
impl UnwindSafe for Holiday
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,