pub struct Module {
pub name: String,
pub hw_ver: Option<String>,
pub sw_ver: Option<String>,
pub product_name: Option<String>,
}Expand description
One module reported by get_version (a hardware/software component).
Fields§
§name: StringModule name, e.g. ota, esp32, mc, ams_f1/0.
hw_ver: Option<String>Hardware revision, e.g. OTA, AP05, AMS_F102.
sw_ver: Option<String>Software/firmware version of this module, e.g. 01.07.02.00.
product_name: Option<String>Marketing name when the module carries one (Bambu Lab A1 mini,
AMS Lite); empty strings are dropped to None.
Trait Implementations§
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.