#[non_exhaustive]pub struct ExcludePeriodConfiguration {
pub amount: i32,
pub granularity: TimeGranularity,
pub status: Option<WidgetStatus>,
}Expand description
The exclude period of TimeRangeFilter or RelativeDatesFilter.
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.amount: i32The amount or number of the exclude period.
granularity: TimeGranularityThe granularity or unit (day, month, year) of the exclude period.
status: Option<WidgetStatus>The status of the exclude period. Choose from the following options:
-
ENABLED -
DISABLED
Implementations§
source§impl ExcludePeriodConfiguration
impl ExcludePeriodConfiguration
sourcepub fn granularity(&self) -> &TimeGranularity
pub fn granularity(&self) -> &TimeGranularity
The granularity or unit (day, month, year) of the exclude period.
sourcepub fn status(&self) -> Option<&WidgetStatus>
pub fn status(&self) -> Option<&WidgetStatus>
The status of the exclude period. Choose from the following options:
-
ENABLED -
DISABLED
source§impl ExcludePeriodConfiguration
impl ExcludePeriodConfiguration
sourcepub fn builder() -> ExcludePeriodConfigurationBuilder
pub fn builder() -> ExcludePeriodConfigurationBuilder
Creates a new builder-style object to manufacture ExcludePeriodConfiguration.
Trait Implementations§
source§impl Clone for ExcludePeriodConfiguration
impl Clone for ExcludePeriodConfiguration
source§fn clone(&self) -> ExcludePeriodConfiguration
fn clone(&self) -> ExcludePeriodConfiguration
Returns a copy of the value. Read more
1.0.0 · 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 ExcludePeriodConfiguration
impl Debug for ExcludePeriodConfiguration
source§impl PartialEq for ExcludePeriodConfiguration
impl PartialEq for ExcludePeriodConfiguration
source§fn eq(&self, other: &ExcludePeriodConfiguration) -> bool
fn eq(&self, other: &ExcludePeriodConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExcludePeriodConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for ExcludePeriodConfiguration
impl Send for ExcludePeriodConfiguration
impl Sync for ExcludePeriodConfiguration
impl Unpin for ExcludePeriodConfiguration
impl UnwindSafe for ExcludePeriodConfiguration
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.