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