pub struct Device {
pub device_type: String,
pub friendly_name: Option<String>,
pub manufacturer: Option<String>,
pub model_name: Option<String>,
pub model_number: Option<String>,
pub model_description: Option<String>,
pub serial_number: Option<String>,
pub udn: Option<String>,
pub presentation_url: Option<String>,
pub services: Vec<Service>,
pub devices: Vec<Device>,
}Expand description
A device of a DeviceDescription.
Fields§
§device_type: StringThe device type, for example urn:dslforum-org:device:InternetGatewayDevice:1.
friendly_name: Option<String>A name for people.
manufacturer: Option<String>The manufacturer.
model_name: Option<String>The model name.
model_number: Option<String>The model number.
model_description: Option<String>A description of the model.
serial_number: Option<String>The serial number.
udn: Option<String>The unique device name, usually uuid: followed by a UUID.
presentation_url: Option<String>The URL of the device’s web interface.
services: Vec<Service>The services of this device, without those of embedded devices.
devices: Vec<Device>Embedded devices.
Trait Implementations§
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Forget for Device
impl Freeze for Device
impl Move 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