Struct lib::config::WifiStatusConfig
source · [−]Expand description
Status that shall be send when a wifi with wifi_string is being seen.
Fields
wifi_string: Stringwifi SSID substring associated to this object custom status
emoji: Stringstring description of the emoji that will be set as a custom status (like home for
:home: mattermost emoji.
text: Stringcustom status text description
Trait Implementations
Implement std::str::FromStr for WifiStatusConfig which allows to call parse from a
string representation:
use lib::config::WifiStatusConfig;
let wsc : WifiStatusConfig = "wifinet::house::Working home".parse().unwrap();
assert_eq!(wsc, WifiStatusConfig {
wifi_string: "wifinet".to_owned(),
emoji:"house".to_owned(),
text: "Working home".to_owned() });This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for WifiStatusConfig
impl Send for WifiStatusConfig
impl Sync for WifiStatusConfig
impl Unpin for WifiStatusConfig
impl UnwindSafe for WifiStatusConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more