pub struct Device {
pub id: String,
pub name: String,
pub room_name: String,
pub ip_address: String,
pub port: u16,
pub model_name: String,
}Expand description
Information about a discovered Sonos device.
Contains all relevant metadata needed to identify and connect to a Sonos speaker.
Fields§
§id: StringUnique device identifier (UDN), e.g., “uuid:RINCON_000E58A0123456”
name: StringFriendly name of the device
room_name: StringRoom name where the device is located
ip_address: StringIP address of the device
port: u16Port number (typically 1400)
model_name: StringModel name (e.g., “Sonos One”, “Sonos Play:1”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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 Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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