#[non_exhaustive]pub enum RateType {
Monthly,
Spot,
Average,
Weekly,
}Expand description
The four rate series HMRC has published.
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.
Monthly
Monthly customs/VAT rates (2014-02 onwards).
Spot
Spot rates on 31 March / 31 December (2010-12 onwards, major currencies).
Average
Yearly average rates to 31 March / 31 December (2010-12 onwards).
Weekly
Weekly amendment series (2014-01 to 2016-04, then discontinued).
Trait Implementations§
impl Copy for RateType
impl Eq for RateType
impl StructuralPartialEq for RateType
Auto Trait Implementations§
impl Freeze for RateType
impl RefUnwindSafe for RateType
impl Send for RateType
impl Sync for RateType
impl Unpin for RateType
impl UnsafeUnpin for RateType
impl UnwindSafe for RateType
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