#[non_exhaustive]pub struct DeviceInfo {
pub brand: Option<String>,
pub model: Option<String>,
pub serial: Option<String>,
pub firmware: Option<String>,
}Expand description
Identification of the device that recorded a dive. Strings are as the device reports them.
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.brand: Option<String>The maker, for example Shearwater.
model: Option<String>The product name, for example Perdix 2.
serial: Option<String>The device’s serial number in its own rendering.
firmware: Option<String>The firmware version the device was running.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl Default for DeviceInfo
impl Default for DeviceInfo
impl Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Forget for DeviceInfo
impl Freeze for DeviceInfo
impl Move for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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