pub struct EloadState {
pub mode: Option<String>,
pub input_enabled: Option<bool>,
pub measured_voltage: Option<f64>,
pub measured_current: Option<f64>,
pub measured_power: Option<f64>,
pub extra: Map<String, Value>,
}Expand description
Structured e-load state from the state action on POST /net/command.
Fields§
§mode: Option<String>Active mode ("cc", "cv", "cr", "cp").
input_enabled: Option<bool>Whether the load input is enabled.
measured_voltage: Option<f64>Measured voltage (V).
measured_current: Option<f64>Measured current (A).
measured_power: Option<f64>Measured power (W).
extra: Map<String, Value>Any extra driver-specific fields.
Trait Implementations§
Source§impl Clone for EloadState
impl Clone for EloadState
Source§fn clone(&self) -> EloadState
fn clone(&self) -> EloadState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EloadState
impl Debug for EloadState
Source§impl<'de> Deserialize<'de> for EloadState
impl<'de> Deserialize<'de> for EloadState
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 EloadState
impl RefUnwindSafe for EloadState
impl Send for EloadState
impl Sync for EloadState
impl Unpin for EloadState
impl UnsafeUnpin for EloadState
impl UnwindSafe for EloadState
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