pub struct WifiStatusConfig {
    pub wifi_string: String,
    pub emoji: String,
    pub text: String,
}
Expand description

Status that shall be send when a wifi with wifi_string is being seen.

Fields

wifi_string: String

wifi SSID substring associated to this object custom status

emoji: String

string description of the emoji that will be set as a custom status (like home for :home: mattermost emoji.

text: String

custom status text description

Trait Implementations

Formats the value using the given formatter. Read more

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() });

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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