pub struct WiFiCredentials {
pub ssid: Vec<u8>,
pub credentials: Vec<u8>,
}Expand description
Wi-Fi station credentials supplied to AddOrUpdateWiFiNetwork.
ssid must be 1–32 bytes (Matter Core Spec §11.9 constraints).
credentials must be 0–64 bytes — empty means open network, ≤64
bytes covers WPA2/WPA3 PSK lengths.
Debug is hand-written to redact credentials (renders only the
length). Clone is derived. Validation runs in
Commissioner::new (M6.5.2 Task 13).
Fields§
§ssid: Vec<u8>SSID bytes, 1–32 bytes.
credentials: Vec<u8>Pre-shared key / passphrase bytes, 0–64 bytes. Empty means open network.
Trait Implementations§
Source§impl Clone for WiFiCredentials
impl Clone for WiFiCredentials
Source§fn clone(&self) -> WiFiCredentials
fn clone(&self) -> WiFiCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WiFiCredentials
impl Debug for WiFiCredentials
impl Eq for WiFiCredentials
Source§impl PartialEq for WiFiCredentials
impl PartialEq for WiFiCredentials
impl StructuralPartialEq for WiFiCredentials
Auto Trait Implementations§
impl Freeze for WiFiCredentials
impl RefUnwindSafe for WiFiCredentials
impl Send for WiFiCredentials
impl Sync for WiFiCredentials
impl Unpin for WiFiCredentials
impl UnsafeUnpin for WiFiCredentials
impl UnwindSafe for WiFiCredentials
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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