pub struct WifiConfig {
pub mode: String,
pub sta_ssid: Option<String>,
pub sta_password: Option<String>,
pub channel: Option<u8>,
}Fields§
§mode: Stringstation | sniffer | esp-now-central | esp-now-peripheral.
sta_ssid: Option<String>§sta_password: Option<String>§channel: Option<u8>Implementations§
Source§impl WifiConfig
impl WifiConfig
Sourcepub fn to_cli_command(&self) -> Result<String, String>
pub fn to_cli_command(&self) -> Result<String, String>
Validate values and emit the matching set-wifi … line.
Trait Implementations§
Source§impl Debug for WifiConfig
impl Debug for WifiConfig
Source§impl<'de> Deserialize<'de> for WifiConfig
impl<'de> Deserialize<'de> for WifiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WifiConfig
impl RefUnwindSafe for WifiConfig
impl Send for WifiConfig
impl Sync for WifiConfig
impl Unpin for WifiConfig
impl UnsafeUnpin for WifiConfig
impl UnwindSafe for WifiConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more