[][src]Struct yooper::description::Device

pub struct Device {
    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>,
}

A Logical device. One physical "Device" may contain multiple logical Devices.

Fields

device_type: DeviceType

UPnP Device Type

friendly_name: String

Short description for end user. Should be < 64 characters.

manufacturer: String

Manufacturer'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: UniqueDeviceName

universally-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

impl Debug for Device[src]

impl<'de> Deserialize<'de> for Device[src]

impl PartialEq<Device> for Device[src]

impl StructuralPartialEq for Device[src]

Auto Trait Implementations

impl RefUnwindSafe for Device

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.