pub struct DeviceCreateRequest {
pub type: Option<String>,
pub id_vendor: Option<u16>,
pub id_product: Option<u16>,
pub device_specific: Option<HashMap<String, Value>>,
}Expand description
DeviceCreateRequest DTO
Fields§
§type: Option<String>§id_vendor: Option<u16>§id_product: Option<u16>§device_specific: Option<HashMap<String, Value>>Trait Implementations§
Source§impl Clone for DeviceCreateRequest
impl Clone for DeviceCreateRequest
Source§fn clone(&self) -> DeviceCreateRequest
fn clone(&self) -> DeviceCreateRequest
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 DeviceCreateRequest
impl Debug for DeviceCreateRequest
Source§impl<'de> Deserialize<'de> for DeviceCreateRequest
impl<'de> Deserialize<'de> for DeviceCreateRequest
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 DeviceCreateRequest
impl RefUnwindSafe for DeviceCreateRequest
impl Send for DeviceCreateRequest
impl Sync for DeviceCreateRequest
impl Unpin for DeviceCreateRequest
impl UnsafeUnpin for DeviceCreateRequest
impl UnwindSafe for DeviceCreateRequest
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