pub struct BatteryState {Show 19 fields
pub netname: Option<String>,
pub channel: Option<i64>,
pub error: Option<String>,
pub terminal_voltage: Option<f64>,
pub current: Option<f64>,
pub esr: Option<f64>,
pub soc: Option<f64>,
pub voc: Option<f64>,
pub enabled: Option<bool>,
pub mode: Option<String>,
pub model: Option<String>,
pub capacity: Option<f64>,
pub current_limit: Option<f64>,
pub ocp_limit: Option<f64>,
pub ovp_limit: Option<f64>,
pub volt_full: Option<f64>,
pub volt_empty: Option<f64>,
pub ocp_tripped: Option<bool>,
pub ovp_tripped: Option<bool>,
}Expand description
Structured battery-simulator state from the state action on
POST /battery/command. Fields are None when the individual read
failed.
Fields§
§netname: Option<String>Net name echo.
channel: Option<i64>Instrument channel driving this net.
error: Option<String>Transport-level error when the whole state gather failed.
terminal_voltage: Option<f64>Simulated terminal voltage (V).
current: Option<f64>Measured current (A).
esr: Option<f64>Equivalent series resistance (ohm).
soc: Option<f64>State of charge (%).
voc: Option<f64>Open-circuit voltage (V).
enabled: Option<bool>Whether the simulator output is enabled.
mode: Option<String>Simulation mode ("static" / "dynamic").
model: Option<String>Battery model / part number.
capacity: Option<f64>Battery capacity (Ah).
current_limit: Option<f64>Current limit (A).
ocp_limit: Option<f64>Over-current protection limit (A).
ovp_limit: Option<f64>Over-voltage protection limit (V).
volt_full: Option<f64>Voltage considered “full” (V).
volt_empty: Option<f64>Voltage considered “empty” (V).
ocp_tripped: Option<bool>Whether OCP has tripped.
ovp_tripped: Option<bool>Whether OVP has tripped.
Trait Implementations§
Source§impl Clone for BatteryState
impl Clone for BatteryState
Source§fn clone(&self) -> BatteryState
fn clone(&self) -> BatteryState
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 BatteryState
impl Debug for BatteryState
Source§impl<'de> Deserialize<'de> for BatteryState
impl<'de> Deserialize<'de> for BatteryState
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 BatteryState
impl RefUnwindSafe for BatteryState
impl Send for BatteryState
impl Sync for BatteryState
impl Unpin for BatteryState
impl UnsafeUnpin for BatteryState
impl UnwindSafe for BatteryState
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