#[non_exhaustive]pub struct WirelessDeviceLogOptionBuilder { /* private fields */ }
Expand description
A builder for WirelessDeviceLogOption
.
Implementations§
source§impl WirelessDeviceLogOptionBuilder
impl WirelessDeviceLogOptionBuilder
sourcepub fn type(self, input: WirelessDeviceType) -> Self
pub fn type(self, input: WirelessDeviceType) -> Self
The wireless device type.
This field is required.sourcepub fn set_type(self, input: Option<WirelessDeviceType>) -> Self
pub fn set_type(self, input: Option<WirelessDeviceType>) -> Self
The wireless device type.
sourcepub fn get_type(&self) -> &Option<WirelessDeviceType>
pub fn get_type(&self) -> &Option<WirelessDeviceType>
The wireless device type.
sourcepub fn log_level(self, input: LogLevel) -> Self
pub fn log_level(self, input: LogLevel) -> Self
The log level for a log message. The log levels can be disabled, or set to ERROR
to display less verbose logs containing only error information, or to INFO
for more detailed logs.
sourcepub fn set_log_level(self, input: Option<LogLevel>) -> Self
pub fn set_log_level(self, input: Option<LogLevel>) -> Self
The log level for a log message. The log levels can be disabled, or set to ERROR
to display less verbose logs containing only error information, or to INFO
for more detailed logs.
sourcepub fn get_log_level(&self) -> &Option<LogLevel>
pub fn get_log_level(&self) -> &Option<LogLevel>
The log level for a log message. The log levels can be disabled, or set to ERROR
to display less verbose logs containing only error information, or to INFO
for more detailed logs.
sourcepub fn events(self, input: WirelessDeviceEventLogOption) -> Self
pub fn events(self, input: WirelessDeviceEventLogOption) -> Self
Appends an item to events
.
To override the contents of this collection use set_events
.
The list of wireless device event log options.
sourcepub fn set_events(
self,
input: Option<Vec<WirelessDeviceEventLogOption>>
) -> Self
pub fn set_events( self, input: Option<Vec<WirelessDeviceEventLogOption>> ) -> Self
The list of wireless device event log options.
sourcepub fn get_events(&self) -> &Option<Vec<WirelessDeviceEventLogOption>>
pub fn get_events(&self) -> &Option<Vec<WirelessDeviceEventLogOption>>
The list of wireless device event log options.
sourcepub fn build(self) -> Result<WirelessDeviceLogOption, BuildError>
pub fn build(self) -> Result<WirelessDeviceLogOption, BuildError>
Consumes the builder and constructs a WirelessDeviceLogOption
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WirelessDeviceLogOptionBuilder
impl Clone for WirelessDeviceLogOptionBuilder
source§fn clone(&self) -> WirelessDeviceLogOptionBuilder
fn clone(&self) -> WirelessDeviceLogOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for WirelessDeviceLogOptionBuilder
impl Default for WirelessDeviceLogOptionBuilder
source§fn default() -> WirelessDeviceLogOptionBuilder
fn default() -> WirelessDeviceLogOptionBuilder
source§impl PartialEq for WirelessDeviceLogOptionBuilder
impl PartialEq for WirelessDeviceLogOptionBuilder
source§fn eq(&self, other: &WirelessDeviceLogOptionBuilder) -> bool
fn eq(&self, other: &WirelessDeviceLogOptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WirelessDeviceLogOptionBuilder
Auto Trait Implementations§
impl Freeze for WirelessDeviceLogOptionBuilder
impl RefUnwindSafe for WirelessDeviceLogOptionBuilder
impl Send for WirelessDeviceLogOptionBuilder
impl Sync for WirelessDeviceLogOptionBuilder
impl Unpin for WirelessDeviceLogOptionBuilder
impl UnwindSafe for WirelessDeviceLogOptionBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more