pub struct StateOfCharge {
pub battery_level: u32,
pub battery_range: f32,
pub charge_current_request: u32,
pub charge_current_request_max: u32,
pub ideal_battery_range: f32,
pub usable_battery_level: u32,
}Fields§
§battery_level: u32§battery_range: f32§charge_current_request: u32§charge_current_request_max: u32§ideal_battery_range: f32§usable_battery_level: u32Trait Implementations§
Source§impl Debug for StateOfCharge
impl Debug for StateOfCharge
Source§impl<'de> Deserialize<'de> for StateOfCharge
impl<'de> Deserialize<'de> for StateOfCharge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StateOfCharge
impl RefUnwindSafe for StateOfCharge
impl Send for StateOfCharge
impl Sync for StateOfCharge
impl Unpin for StateOfCharge
impl UnwindSafe for StateOfCharge
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more