#[non_exhaustive]pub struct ListMetricsOptions {
pub owner_type: String,
pub owner_id: String,
pub months: u32,
pub period_grouping: String,
}Expand description
Options for the Client::list_metrics dispatcher.
owner_type must be one of METRICS_OWNER_NAICS, METRICS_OWNER_PSC,
or METRICS_OWNER_ENTITY. owner_id is the NAICS code, PSC code, or
entity UEI; months is the rolling-window length (must be > 0);
period_grouping is the aggregation granularity (typically "month",
"quarter", or "year").
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.owner_type: StringOne of METRICS_OWNER_NAICS, METRICS_OWNER_PSC, or
METRICS_OWNER_ENTITY.
owner_id: StringThe NAICS code, PSC code, or entity UEI.
months: u32Rolling-window length in months. Must be > 0.
period_grouping: StringAggregation granularity (e.g. "month", "quarter", "year").
Implementations§
Trait Implementations§
Source§impl Clone for ListMetricsOptions
impl Clone for ListMetricsOptions
Source§fn clone(&self) -> ListMetricsOptions
fn clone(&self) -> ListMetricsOptions
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 moreSource§impl Debug for ListMetricsOptions
impl Debug for ListMetricsOptions
Source§impl Default for ListMetricsOptions
impl Default for ListMetricsOptions
Source§fn default() -> ListMetricsOptions
fn default() -> ListMetricsOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListMetricsOptions
impl PartialEq for ListMetricsOptions
Source§fn eq(&self, other: &ListMetricsOptions) -> bool
fn eq(&self, other: &ListMetricsOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ListMetricsOptions
impl StructuralPartialEq for ListMetricsOptions
Auto Trait Implementations§
impl Freeze for ListMetricsOptions
impl RefUnwindSafe for ListMetricsOptions
impl Send for ListMetricsOptions
impl Sync for ListMetricsOptions
impl Unpin for ListMetricsOptions
impl UnsafeUnpin for ListMetricsOptions
impl UnwindSafe for ListMetricsOptions
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