pub struct Firmware {
pub state: State,
pub installed: Option<String>,
pub build_type: Option<String>,
pub offered: Option<String>,
pub info_url: Option<String>,
pub update_state: Option<String>,
pub auto_update: Option<String>,
pub last_update_time: Option<String>,
pub last_update_result: Option<String>,
pub previous_version: Option<String>,
}Expand description
The firmware and its updates. Values the device does not report are
None.
Fields§
§state: State§installed: Option<String>The installed version, like 285.08.25.
build_type: Option<String>The kind of build of the installed version, like Release.
offered: Option<String>The version the device offers.
info_url: Option<String>The page with the changes of the offered version.
update_state: Option<String>The state of the update process, like Stopped, UpdateAvailable
or Error.
auto_update: Option<String>What the device does with new versions by itself: off, check
(only notifies), important or all.
last_update_time: Option<String>When the last update was installed.
last_update_result: Option<String>Whether the last update worked: succeeded or failed.
previous_version: Option<String>The version before the last update.
Trait Implementations§
impl Eq for Firmware
impl StructuralPartialEq for Firmware
Auto Trait Implementations§
impl Forget for Firmware
impl Freeze for Firmware
impl Move for Firmware
impl RefUnwindSafe for Firmware
impl Send for Firmware
impl Sync for Firmware
impl Unpin for Firmware
impl UnsafeUnpin for Firmware
impl UnwindSafe for Firmware
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