#[non_exhaustive]pub enum Units {
Levels,
Change,
ChangeFromYearAgo,
PercentChange,
PercentChangeFromYearAgo,
CompoundedAnnualRateOfChange,
ContinuouslyCompoundedRateOfChange,
ContinuouslyCompoundedAnnualRateOfChange,
NaturalLog,
}Expand description
A units transformation FRED applies to a series’ observations before
returning them (the units request parameter).
A request-only, closed vocabulary — query_code is the
value sent to FRED. #[non_exhaustive] leaves room for FRED to add
transformations without a breaking change.
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.
Levels
Levels — the data as reported (lin, FRED’s default).
Change
Change from the previous period (chg).
ChangeFromYearAgo
Change from a year ago (ch1).
PercentChange
Percent change from the previous period (pch).
PercentChangeFromYearAgo
Percent change from a year ago (pc1).
CompoundedAnnualRateOfChange
Compounded annual rate of change (pca).
ContinuouslyCompoundedRateOfChange
Continuously compounded rate of change (cch).
ContinuouslyCompoundedAnnualRateOfChange
Continuously compounded annual rate of change (cca).
NaturalLog
Natural log (log).
Implementations§
Trait Implementations§
impl Copy for Units
impl Eq for Units
impl StructuralPartialEq for Units
Auto Trait Implementations§
impl Freeze for Units
impl RefUnwindSafe for Units
impl Send for Units
impl Sync for Units
impl Unpin for Units
impl UnsafeUnpin for Units
impl UnwindSafe for Units
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