pub struct DeviceNames {
pub default_names: Option<Vec<String>>,
pub name: Option<String>,
pub nicknames: Option<Vec<String>>,
}Expand description
Identifiers used to describe the device.
This type is not used in any activity, and only used as part of another schema.
Fields§
§default_names: Option<Vec<String>>List of names provided by the manufacturer rather than the user, such as serial numbers, SKUs, etc.
name: Option<String>Primary name of the device, generally provided by the user.
nicknames: Option<Vec<String>>Additional names provided by the user for the device.
Trait Implementations§
Source§impl Clone for DeviceNames
impl Clone for DeviceNames
Source§fn clone(&self) -> DeviceNames
fn clone(&self) -> DeviceNames
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 DeviceNames
impl Debug for DeviceNames
Source§impl Default for DeviceNames
impl Default for DeviceNames
Source§fn default() -> DeviceNames
fn default() -> DeviceNames
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceNames
impl<'de> Deserialize<'de> for DeviceNames
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 Part for DeviceNames
Auto Trait Implementations§
impl Freeze for DeviceNames
impl RefUnwindSafe for DeviceNames
impl Send for DeviceNames
impl Sync for DeviceNames
impl Unpin for DeviceNames
impl UnsafeUnpin for DeviceNames
impl UnwindSafe for DeviceNames
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