pub struct Device {Show 14 fields
pub device_type: DeviceType,
pub friendly_name: String,
pub manufacturer: String,
pub manufacturer_url: Option<String>,
pub model_description: Option<String>,
pub model_name: Option<String>,
pub model_number: Option<String>,
pub model_url: Option<String>,
pub serial_number: Option<String>,
pub unique_device_name: UniqueDeviceName,
pub upc: Option<String>,
pub services: Vec<Service>,
pub devices: Vec<Device>,
pub presentation_url: Option<String>,
}Expand description
A Logical device. One physical “Device” may contain multiple logical Devices.
Fields§
§device_type: DeviceTypeUPnP Device Type
friendly_name: StringShort description for end user. Should be < 64 characters.
manufacturer: StringManufacturer’s name. Should be <64 characters.
manufacturer_url: Option<String>Web site for Manufacturer
model_description: Option<String>Long description for the end user. Should be < 128 characters
model_name: Option<String>Should be < 128 characters
model_number: Option<String>Should be < 32 characters
model_url: Option<String>§serial_number: Option<String>Shourd be < 64 characters
unique_device_name: UniqueDeviceNameuniversally-unique identifier for the device. Shall be the same over time for a specific device. Shall max the field value of the NT header in discovery messages
upc: Option<String>Universal product code.
services: Vec<Service>§devices: Vec<Device>§presentation_url: Option<String>A page to display to the end user
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
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin 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