pub struct AddBatteryParams {
pub power: i32,
pub state_of_charge: Option<f32>,
pub size: Option<u32>,
pub lifetime_charge: Option<u32>,
pub lifetime_discharge: Option<u32>,
pub state: Option<BatteryState>,
}Fields§
§power: i32Battery power in watts. A positive value indicates charging either from generation or load (consumption). A negative value indicates discharging.
state_of_charge: Option<f32>State of charge as a percentage.
size: Option<u32>Usable battery size in watt-hours.
lifetime_charge: Option<u32>Lifetime charge in watt-hours.
lifetime_discharge: Option<u32>Lifetime discharge in watt-hours.
state: Option<BatteryState>Battery state.
Trait Implementations§
Source§impl Clone for AddBatteryParams
impl Clone for AddBatteryParams
Source§fn clone(&self) -> AddBatteryParams
fn clone(&self) -> AddBatteryParams
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 AddBatteryParams
impl Debug for AddBatteryParams
Source§impl Default for AddBatteryParams
impl Default for AddBatteryParams
Source§fn default() -> AddBatteryParams
fn default() -> AddBatteryParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddBatteryParams
impl RefUnwindSafe for AddBatteryParams
impl Send for AddBatteryParams
impl Sync for AddBatteryParams
impl Unpin for AddBatteryParams
impl UnwindSafe for AddBatteryParams
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