pub struct Battery {
pub charge_level_percentage: Option<f64>,
pub charge_status: Option<String>,
pub charging_power_watts: Option<f64>,
pub estimated_charging_time_minutes: Option<i64>,
pub estimated_distance_to_empty_km: Option<f64>,
}Expand description
Battery and charging data.
Fields§
§charge_level_percentage: Option<f64>Battery charge level as a percentage (0-100).
charge_status: Option<String>Current charging status (e.g., “charging”, “idle”).
charging_power_watts: Option<f64>Current charging power in watts.
estimated_charging_time_minutes: Option<i64>Estimated time to full charge in minutes.
estimated_distance_to_empty_km: Option<f64>Estimated distance to empty in kilometers.
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
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