pub struct LuaElectricNetworkSetAccumulatorsEnergyParams {
pub energy: f64,
pub equalize: bool,
pub name: LuaAny,
pub quality: LuaAny,
}Expand description
Changes energy stored inside of accumulators that are part of any electric sub network covered by this electric network.
Fields§
§energy: f64New total energy to be set onto matching accumulators.
equalize: boolWhether all accumulators should have the same charge ratio, regardless of whether that means discharging some of them. Defaults to false.
name: LuaAnyWhen given, only accumulators of this prototype will be considered.
quality: LuaAnyWhen given, only accumulators of this quality will be considered.
Trait Implementations§
Source§impl Clone for LuaElectricNetworkSetAccumulatorsEnergyParams
impl Clone for LuaElectricNetworkSetAccumulatorsEnergyParams
Source§fn clone(&self) -> LuaElectricNetworkSetAccumulatorsEnergyParams
fn clone(&self) -> LuaElectricNetworkSetAccumulatorsEnergyParams
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 Default for LuaElectricNetworkSetAccumulatorsEnergyParams
impl Default for LuaElectricNetworkSetAccumulatorsEnergyParams
Source§fn default() -> LuaElectricNetworkSetAccumulatorsEnergyParams
fn default() -> LuaElectricNetworkSetAccumulatorsEnergyParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaElectricNetworkSetAccumulatorsEnergyParams
impl RefUnwindSafe for LuaElectricNetworkSetAccumulatorsEnergyParams
impl Send for LuaElectricNetworkSetAccumulatorsEnergyParams
impl Sync for LuaElectricNetworkSetAccumulatorsEnergyParams
impl Unpin for LuaElectricNetworkSetAccumulatorsEnergyParams
impl UnsafeUnpin for LuaElectricNetworkSetAccumulatorsEnergyParams
impl UnwindSafe for LuaElectricNetworkSetAccumulatorsEnergyParams
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