ChargerState

Struct ChargerState 

Source
pub struct ChargerState {
Show 57 fields pub smart_charging: bool, pub cable_locked: bool, pub charger_op_mode: ChargerOpMode, pub total_power: f64, pub session_energy: f64, pub energy_per_hour: f64, pub wifi_rssi: Option<i32>, pub cell_rssi: Option<i32>, pub local_rssi: Option<i32>, pub output_phase: OutputPhase, pub dynamic_circuit_current_p1: u32, pub dynamic_circuit_current_p2: u32, pub dynamic_circuit_current_p3: u32, pub latest_pulse: UtcDateTime, pub charger_firmware: u32, pub voltage: f64, pub charger_rat: u32, pub lock_cable_permanently: bool, pub in_current_t2: Option<f64>, pub in_current_t3: Option<f64>, pub in_current_t4: Option<f64>, pub in_current_t5: Option<f64>, pub output_current: f64, pub is_online: bool, pub in_voltage_t1_t2: Option<f64>, pub in_voltage_t1_t3: Option<f64>, pub in_voltage_t1_t4: Option<f64>, pub in_voltage_t1_t5: Option<f64>, pub in_voltage_t2_t3: Option<f64>, pub in_voltage_t2_t4: Option<f64>, pub in_voltage_t2_t5: Option<f64>, pub in_voltage_t3_t4: Option<f64>, pub in_voltage_t3_t5: Option<f64>, pub in_voltage_t4_t5: Option<f64>, pub led_mode: u32, pub cable_rating: f64, pub dynamic_charger_current: f64, pub circuit_total_allocated_phase_conductor_current_l1: f64, pub circuit_total_allocated_phase_conductor_current_l2: f64, pub circuit_total_allocated_phase_conductor_current_l3: f64, pub circuit_total_phase_conductor_current_l1: f64, pub circuit_total_phase_conductor_current_l2: f64, pub circuit_total_phase_conductor_current_l3: f64, pub reason_for_no_current: u32, pub wifi_ap_enabled: bool, pub lifetime_energy: f64, pub offline_max_circuit_current_p1: u32, pub offline_max_circuit_current_p2: u32, pub offline_max_circuit_current_p3: u32, pub error_code: u32, pub fatal_error_code: u32, pub eq_available_current_p1: Option<f64>, pub eq_available_current_p2: Option<f64>, pub eq_available_current_p3: Option<f64>, pub derated_current: Option<f64>, pub derating_active: bool, pub connected_to_cloud: bool,
}

Fields§

§smart_charging: bool§cable_locked: bool§charger_op_mode: ChargerOpMode§total_power: f64§session_energy: f64§energy_per_hour: f64§wifi_rssi: Option<i32>§cell_rssi: Option<i32>§local_rssi: Option<i32>§output_phase: OutputPhase§dynamic_circuit_current_p1: u32§dynamic_circuit_current_p2: u32§dynamic_circuit_current_p3: u32§latest_pulse: UtcDateTime§charger_firmware: u32§voltage: f64§charger_rat: u32§lock_cable_permanently: bool§in_current_t2: Option<f64>§in_current_t3: Option<f64>§in_current_t4: Option<f64>§in_current_t5: Option<f64>§output_current: f64§is_online: bool§in_voltage_t1_t2: Option<f64>§in_voltage_t1_t3: Option<f64>§in_voltage_t1_t4: Option<f64>§in_voltage_t1_t5: Option<f64>§in_voltage_t2_t3: Option<f64>§in_voltage_t2_t4: Option<f64>§in_voltage_t2_t5: Option<f64>§in_voltage_t3_t4: Option<f64>§in_voltage_t3_t5: Option<f64>§in_voltage_t4_t5: Option<f64>§led_mode: u32§cable_rating: f64§dynamic_charger_current: f64§circuit_total_allocated_phase_conductor_current_l1: f64§circuit_total_allocated_phase_conductor_current_l2: f64§circuit_total_allocated_phase_conductor_current_l3: f64§circuit_total_phase_conductor_current_l1: f64§circuit_total_phase_conductor_current_l2: f64§circuit_total_phase_conductor_current_l3: f64§reason_for_no_current: u32§wifi_ap_enabled: bool§lifetime_energy: f64§offline_max_circuit_current_p1: u32§offline_max_circuit_current_p2: u32§offline_max_circuit_current_p3: u32§error_code: u32§fatal_error_code: u32§eq_available_current_p1: Option<f64>§eq_available_current_p2: Option<f64>§eq_available_current_p3: Option<f64>§derated_current: Option<f64>§derating_active: bool§connected_to_cloud: bool

Trait Implementations§

Source§

impl Clone for ChargerState

Source§

fn clone(&self) -> ChargerState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChargerState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ChargerState

Source§

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 PartialEq for ChargerState

Source§

fn eq(&self, other: &ChargerState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ChargerState

Source§

fn partial_cmp(&self, other: &ChargerState) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for ChargerState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,