#[non_exhaustive]pub enum Period {
YearMonth(YearMonth),
YearEnd(YearEnd),
Week {
start: NaiveDate,
end: NaiveDate,
},
}Expand description
The period a Rate or table applies to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
YearMonth(YearMonth)
A calendar month (monthly series).
YearEnd(YearEnd)
A year ending 31 March or 31 December (spot and average series).
Week
An inclusive weekly-amendment validity range.
Trait Implementations§
impl Copy for Period
impl Eq for Period
impl StructuralPartialEq for Period
Auto Trait Implementations§
impl Freeze for Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnsafeUnpin for Period
impl UnwindSafe for Period
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