pub struct Battery {
pub voltage: f64,
pub current: f64,
pub capacity: f64,
}
Expand description
Battery status and statistics.
Fields§
§voltage: f64
§current: f64
§capacity: f64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Battery
impl<'de> Deserialize<'de> for Battery
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
Source§impl PartialOrd for Battery
impl PartialOrd for Battery
impl Copy for Battery
impl StructuralPartialEq for Battery
Auto Trait Implementations§
impl Freeze for Battery
impl RefUnwindSafe for Battery
impl Send for Battery
impl Sync for Battery
impl Unpin for Battery
impl UnwindSafe for Battery
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