pub struct Charging {
pub is_charging: Option<bool>,
pub state: Option<ChargingState>,
pub power_w: Option<f64>,
pub current_a: Option<f64>,
pub voltage_v: Option<f64>,
pub time_to_full_min: Option<f64>,
pub charger_type: Option<String>,
pub charger_id: Option<String>,
pub is_connected: Option<bool>,
pub is_docked: Option<bool>,
pub station_id: Option<String>,
}Expand description
Charging status information.
Fields§
§is_charging: Option<bool>Whether currently charging
state: Option<ChargingState>Current charging state
power_w: Option<f64>Charging power in watts
current_a: Option<f64>Charging current in amps
voltage_v: Option<f64>Charging voltage in volts
time_to_full_min: Option<f64>Estimated time to full charge in minutes
charger_type: Option<String>Charger type
charger_id: Option<String>Charger ID
is_connected: Option<bool>Whether connected to charger
is_docked: Option<bool>Whether docked at charging station
station_id: Option<String>Charging station ID
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Charging
impl<'de> Deserialize<'de> for Charging
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 Charging
impl RefUnwindSafe for Charging
impl Send for Charging
impl Sync for Charging
impl Unpin for Charging
impl UnwindSafe for Charging
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