pub struct DeviceVersion {
pub firmware: Option<FirmwareVersion>,
pub modules: Vec<Module>,
}Expand description
The printer’s version inventory, parsed from an info.get_version response.
Fields§
§firmware: Option<FirmwareVersion>The OTA module’s sw_ver as a parsed firmware version — the printer’s
user-facing firmware, which the capability registry keys on. None when
there’s no ota module or its sw_ver doesn’t parse.
modules: Vec<Module>Every reported module, in report order.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceVersion
impl Clone for DeviceVersion
Source§fn clone(&self) -> DeviceVersion
fn clone(&self) -> DeviceVersion
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 DeviceVersion
impl Debug for DeviceVersion
Source§impl PartialEq for DeviceVersion
impl PartialEq for DeviceVersion
Source§fn eq(&self, other: &DeviceVersion) -> bool
fn eq(&self, other: &DeviceVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceVersion
impl Serialize for DeviceVersion
impl StructuralPartialEq for DeviceVersion
Auto Trait Implementations§
impl Freeze for DeviceVersion
impl RefUnwindSafe for DeviceVersion
impl Send for DeviceVersion
impl Sync for DeviceVersion
impl Unpin for DeviceVersion
impl UnsafeUnpin for DeviceVersion
impl UnwindSafe for DeviceVersion
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