#[non_exhaustive]pub struct WirelessGatewayLogOption {
pub type: WirelessGatewayType,
pub log_level: LogLevel,
pub events: Option<Vec<WirelessGatewayEventLogOption>>,
}Expand description
The log options for wireless gateways and can be used to set log levels for a specific type of wireless gateway.
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: WirelessGatewayTypeThe wireless gateway 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<WirelessGatewayEventLogOption>>The list of wireless gateway event log options.
Implementations§
source§impl WirelessGatewayLogOption
impl WirelessGatewayLogOption
sourcepub fn type(&self) -> &WirelessGatewayType
pub fn type(&self) -> &WirelessGatewayType
The wireless gateway 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) -> &[WirelessGatewayEventLogOption]
pub fn events(&self) -> &[WirelessGatewayEventLogOption]
The list of wireless gateway 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 WirelessGatewayLogOption
impl WirelessGatewayLogOption
sourcepub fn builder() -> WirelessGatewayLogOptionBuilder
pub fn builder() -> WirelessGatewayLogOptionBuilder
Creates a new builder-style object to manufacture WirelessGatewayLogOption.
Trait Implementations§
source§impl Clone for WirelessGatewayLogOption
impl Clone for WirelessGatewayLogOption
source§fn clone(&self) -> WirelessGatewayLogOption
fn clone(&self) -> WirelessGatewayLogOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WirelessGatewayLogOption
impl Debug for WirelessGatewayLogOption
source§impl PartialEq for WirelessGatewayLogOption
impl PartialEq for WirelessGatewayLogOption
source§fn eq(&self, other: &WirelessGatewayLogOption) -> bool
fn eq(&self, other: &WirelessGatewayLogOption) -> bool
self and other values to be equal, and is used
by ==.