#[non_exhaustive]pub enum AggregationMethod {
Average,
Sum,
EndOfPeriod,
}Expand description
How observations are aggregated when down-sampling to a lower frequency
(the aggregation_method request parameter). Only meaningful alongside
ObservationsRequest::frequency.
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.
Average
Average of the higher-frequency values (avg, FRED’s default).
Sum
Sum of the higher-frequency values (sum).
EndOfPeriod
The end-of-period value (eop).
Implementations§
Source§impl AggregationMethod
impl AggregationMethod
Sourcepub fn query_code(self) -> &'static str
pub fn query_code(self) -> &'static str
The FRED query code for this aggregation method.
Trait Implementations§
Source§impl Clone for AggregationMethod
impl Clone for AggregationMethod
Source§fn clone(&self) -> AggregationMethod
fn clone(&self) -> AggregationMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AggregationMethod
Source§impl Debug for AggregationMethod
impl Debug for AggregationMethod
impl Eq for AggregationMethod
Source§impl PartialEq for AggregationMethod
impl PartialEq for AggregationMethod
Source§fn eq(&self, other: &AggregationMethod) -> bool
fn eq(&self, other: &AggregationMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregationMethod
Auto Trait Implementations§
impl Freeze for AggregationMethod
impl RefUnwindSafe for AggregationMethod
impl Send for AggregationMethod
impl Sync for AggregationMethod
impl Unpin for AggregationMethod
impl UnsafeUnpin for AggregationMethod
impl UnwindSafe for AggregationMethod
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