#[non_exhaustive]pub struct TimeBasedCollectionSchemeBuilder { /* private fields */ }
Expand description
A builder for TimeBasedCollectionScheme
.
Implementations§
source§impl TimeBasedCollectionSchemeBuilder
impl TimeBasedCollectionSchemeBuilder
sourcepub fn period_ms(self, input: i64) -> Self
pub fn period_ms(self, input: i64) -> Self
The time period (in milliseconds) to decide how often to collect data. For example, if the time period is 60000
, the Edge Agent software collects data once every minute.
sourcepub fn set_period_ms(self, input: Option<i64>) -> Self
pub fn set_period_ms(self, input: Option<i64>) -> Self
The time period (in milliseconds) to decide how often to collect data. For example, if the time period is 60000
, the Edge Agent software collects data once every minute.
sourcepub fn get_period_ms(&self) -> &Option<i64>
pub fn get_period_ms(&self) -> &Option<i64>
The time period (in milliseconds) to decide how often to collect data. For example, if the time period is 60000
, the Edge Agent software collects data once every minute.
sourcepub fn build(self) -> Result<TimeBasedCollectionScheme, BuildError>
pub fn build(self) -> Result<TimeBasedCollectionScheme, BuildError>
Consumes the builder and constructs a TimeBasedCollectionScheme
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimeBasedCollectionSchemeBuilder
impl Clone for TimeBasedCollectionSchemeBuilder
source§fn clone(&self) -> TimeBasedCollectionSchemeBuilder
fn clone(&self) -> TimeBasedCollectionSchemeBuilder
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 Default for TimeBasedCollectionSchemeBuilder
impl Default for TimeBasedCollectionSchemeBuilder
source§fn default() -> TimeBasedCollectionSchemeBuilder
fn default() -> TimeBasedCollectionSchemeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TimeBasedCollectionSchemeBuilder
impl PartialEq for TimeBasedCollectionSchemeBuilder
source§fn eq(&self, other: &TimeBasedCollectionSchemeBuilder) -> bool
fn eq(&self, other: &TimeBasedCollectionSchemeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TimeBasedCollectionSchemeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TimeBasedCollectionSchemeBuilder
impl Send for TimeBasedCollectionSchemeBuilder
impl Sync for TimeBasedCollectionSchemeBuilder
impl Unpin for TimeBasedCollectionSchemeBuilder
impl UnwindSafe for TimeBasedCollectionSchemeBuilder
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.