pub struct WifiConfigPatch {
pub ssid: Option<String<MAX_STR_LEN>>,
pub password: Option<String<MAX_STR_LEN>>,
}Expand description
One WifiConfig entry as it arrives in a patch (web: DeepPartial).
The UI edits credentials leaf by leaf, so both fields are optional and absent fields keep their current value.
Fields§
§ssid: Option<String<MAX_STR_LEN>>Optional network name.
password: Option<String<MAX_STR_LEN>>Optional password.
Implementations§
Source§impl WifiConfigPatch
impl WifiConfigPatch
Sourcefn apply(self, target: &mut WifiConfig)
fn apply(self, target: &mut WifiConfig)
Move the present fields onto target; absent fields stay untouched.
Trait Implementations§
Source§impl Debug for WifiConfigPatch
impl Debug for WifiConfigPatch
Source§impl Default for WifiConfigPatch
impl Default for WifiConfigPatch
Source§fn default() -> WifiConfigPatch
fn default() -> WifiConfigPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WifiConfigPatch
impl<'de> Deserialize<'de> for WifiConfigPatch
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 WifiConfigPatch
impl RefUnwindSafe for WifiConfigPatch
impl Send for WifiConfigPatch
impl Sync for WifiConfigPatch
impl Unpin for WifiConfigPatch
impl UnsafeUnpin for WifiConfigPatch
impl UnwindSafe for WifiConfigPatch
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more