pub struct CellVoltageRange {
pub highest_voltage: f32,
pub highest_cell: u8,
pub lowest_voltage: f32,
pub lowest_cell: u8,
}Expand description
Represents the range of cell voltages (highest and lowest) in the battery pack.
Fields§
§highest_voltage: f32Highest cell voltage in Volts.
highest_cell: u8Cell number with the highest voltage.
lowest_voltage: f32Lowest cell voltage in Volts.
lowest_cell: u8Cell number with the lowest voltage.
Implementations§
Trait Implementations§
Source§impl Clone for CellVoltageRange
impl Clone for CellVoltageRange
Source§fn clone(&self) -> CellVoltageRange
fn clone(&self) -> CellVoltageRange
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 CellVoltageRange
impl Debug for CellVoltageRange
Source§impl<'de> Deserialize<'de> for CellVoltageRange
impl<'de> Deserialize<'de> for CellVoltageRange
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 CellVoltageRange
impl RefUnwindSafe for CellVoltageRange
impl Send for CellVoltageRange
impl Sync for CellVoltageRange
impl Unpin for CellVoltageRange
impl UnwindSafe for CellVoltageRange
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