#[non_exhaustive]pub struct WirelessDeviceLogOption {
pub type: WirelessDeviceType,
pub log_level: LogLevel,
pub events: Option<Vec<WirelessDeviceEventLogOption>>,
}Expand description
The log options for wireless devices and can be used to set log levels for a specific type of wireless device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: WirelessDeviceTypeThe wireless device type.
log_level: LogLevelThe 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.
events: Option<Vec<WirelessDeviceEventLogOption>>The list of wireless device event log options.
Implementations§
source§impl WirelessDeviceLogOption
impl WirelessDeviceLogOption
sourcepub fn type(&self) -> &WirelessDeviceType
pub fn type(&self) -> &WirelessDeviceType
The wireless device type.
sourcepub fn log_level(&self) -> &LogLevel
pub fn log_level(&self) -> &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) -> &[WirelessDeviceEventLogOption]
pub fn events(&self) -> &[WirelessDeviceEventLogOption]
The list of wireless device event log options.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .events.is_none().
source§impl WirelessDeviceLogOption
impl WirelessDeviceLogOption
sourcepub fn builder() -> WirelessDeviceLogOptionBuilder
pub fn builder() -> WirelessDeviceLogOptionBuilder
Creates a new builder-style object to manufacture WirelessDeviceLogOption.
Trait Implementations§
source§impl Clone for WirelessDeviceLogOption
impl Clone for WirelessDeviceLogOption
source§fn clone(&self) -> WirelessDeviceLogOption
fn clone(&self) -> WirelessDeviceLogOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WirelessDeviceLogOption
impl Debug for WirelessDeviceLogOption
source§impl PartialEq for WirelessDeviceLogOption
impl PartialEq for WirelessDeviceLogOption
source§fn eq(&self, other: &WirelessDeviceLogOption) -> bool
fn eq(&self, other: &WirelessDeviceLogOption) -> bool
self and other values to be equal, and is used
by ==.