#[non_exhaustive]pub struct WirelessDeviceEventLogOptionBuilder { /* private fields */ }Expand description
A builder for WirelessDeviceEventLogOption.
Implementations§
source§impl WirelessDeviceEventLogOptionBuilder
impl WirelessDeviceEventLogOptionBuilder
sourcepub fn event(self, input: WirelessDeviceEvent) -> Self
pub fn event(self, input: WirelessDeviceEvent) -> Self
The event for a log message, if the log message is tied to a wireless device.
This field is required.sourcepub fn set_event(self, input: Option<WirelessDeviceEvent>) -> Self
pub fn set_event(self, input: Option<WirelessDeviceEvent>) -> Self
The event for a log message, if the log message is tied to a wireless device.
sourcepub fn get_event(&self) -> &Option<WirelessDeviceEvent>
pub fn get_event(&self) -> &Option<WirelessDeviceEvent>
The event for a log message, if the log message is tied to a wireless device.
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 build(self) -> Result<WirelessDeviceEventLogOption, BuildError>
pub fn build(self) -> Result<WirelessDeviceEventLogOption, BuildError>
Consumes the builder and constructs a WirelessDeviceEventLogOption.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WirelessDeviceEventLogOptionBuilder
impl Clone for WirelessDeviceEventLogOptionBuilder
source§fn clone(&self) -> WirelessDeviceEventLogOptionBuilder
fn clone(&self) -> WirelessDeviceEventLogOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for WirelessDeviceEventLogOptionBuilder
impl Default for WirelessDeviceEventLogOptionBuilder
source§fn default() -> WirelessDeviceEventLogOptionBuilder
fn default() -> WirelessDeviceEventLogOptionBuilder
source§impl PartialEq for WirelessDeviceEventLogOptionBuilder
impl PartialEq for WirelessDeviceEventLogOptionBuilder
source§fn eq(&self, other: &WirelessDeviceEventLogOptionBuilder) -> bool
fn eq(&self, other: &WirelessDeviceEventLogOptionBuilder) -> bool
self and other values to be equal, and is used
by ==.