pub struct BatteryInfo {
pub capacity: u16,
pub percent: u16,
pub current: f32,
pub voltage: f32,
pub temperature_1: u8,
pub temperature_2: u8,
}Fields§
§capacity: u16Charge left in scooter, in Milliamps (mA)
percent: u16§current: f32In Ampers, current current going through battery, you can use it with voltage to calculate wats
voltage: f32Current measured voltage for all batteries, in Volts
temperature_1: u8§temperature_2: u8Trait Implementations§
Source§impl Debug for BatteryInfo
impl Debug for BatteryInfo
Source§impl Serialize for BatteryInfo
impl Serialize for BatteryInfo
Auto Trait Implementations§
impl Freeze for BatteryInfo
impl RefUnwindSafe for BatteryInfo
impl Send for BatteryInfo
impl Sync for BatteryInfo
impl Unpin for BatteryInfo
impl UnsafeUnpin for BatteryInfo
impl UnwindSafe for BatteryInfo
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