pub struct ChargingStationInteraction {
pub station_id: Option<String>,
pub name: Option<String>,
pub state: Option<ChargingStationState>,
pub position: Option<Position2D>,
pub distance_m: Option<f64>,
pub is_docked: Option<bool>,
pub is_approaching: Option<bool>,
pub alignment_score: Option<f64>,
pub charger_type: Option<String>,
pub max_power_w: Option<f64>,
}Expand description
Charging station interaction.
Fields§
§station_id: Option<String>Station ID
name: Option<String>Station name
state: Option<ChargingStationState>Station state
position: Option<Position2D>Station position
distance_m: Option<f64>Distance to station (m)
is_docked: Option<bool>Whether docked
is_approaching: Option<bool>Whether approaching
alignment_score: Option<f64>Dock alignment score (0-1)
charger_type: Option<String>Charger type
max_power_w: Option<f64>Max power (W)
Implementations§
Trait Implementations§
Source§impl Clone for ChargingStationInteraction
impl Clone for ChargingStationInteraction
Source§fn clone(&self) -> ChargingStationInteraction
fn clone(&self) -> ChargingStationInteraction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChargingStationInteraction
impl Debug for ChargingStationInteraction
Source§impl Default for ChargingStationInteraction
impl Default for ChargingStationInteraction
Source§fn default() -> ChargingStationInteraction
fn default() -> ChargingStationInteraction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChargingStationInteraction
impl<'de> Deserialize<'de> for ChargingStationInteraction
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 Validate for ChargingStationInteraction
impl Validate for ChargingStationInteraction
Auto Trait Implementations§
impl Freeze for ChargingStationInteraction
impl RefUnwindSafe for ChargingStationInteraction
impl Send for ChargingStationInteraction
impl Sync for ChargingStationInteraction
impl Unpin for ChargingStationInteraction
impl UnwindSafe for ChargingStationInteraction
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