#[non_exhaustive]pub struct DeviceInformationCapabilities {
pub serial_number: bool,
}Expand description
Represents the bitfield stating which additional capabilities this feature supports.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.serial_number: boolWhether serial number retrieval is supported.
This field was added in feature version 4 and will always be false for
older versions.
Trait Implementations§
Source§impl Clone for DeviceInformationCapabilities
impl Clone for DeviceInformationCapabilities
Source§fn clone(&self) -> DeviceInformationCapabilities
fn clone(&self) -> DeviceInformationCapabilities
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 moreimpl Copy for DeviceInformationCapabilities
impl Eq for DeviceInformationCapabilities
Source§impl From<u8> for DeviceInformationCapabilities
impl From<u8> for DeviceInformationCapabilities
Source§impl Hash for DeviceInformationCapabilities
impl Hash for DeviceInformationCapabilities
Source§impl PartialEq for DeviceInformationCapabilities
impl PartialEq for DeviceInformationCapabilities
Source§fn eq(&self, other: &DeviceInformationCapabilities) -> bool
fn eq(&self, other: &DeviceInformationCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceInformationCapabilities
Auto Trait Implementations§
impl Freeze for DeviceInformationCapabilities
impl RefUnwindSafe for DeviceInformationCapabilities
impl Send for DeviceInformationCapabilities
impl Sync for DeviceInformationCapabilities
impl Unpin for DeviceInformationCapabilities
impl UnsafeUnpin for DeviceInformationCapabilities
impl UnwindSafe for DeviceInformationCapabilities
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