pub struct LuaElectricSubNetworkSetAccumulatorsEnergyParams {
pub energy: f64,
pub equalize: bool,
pub name: LuaAny,
pub quality: LuaAny,
}Expand description
Changes energy stored inside of accumulators connected to the electric sub 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 LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl Clone for LuaElectricSubNetworkSetAccumulatorsEnergyParams
Source§fn clone(&self) -> LuaElectricSubNetworkSetAccumulatorsEnergyParams
fn clone(&self) -> LuaElectricSubNetworkSetAccumulatorsEnergyParams
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 LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl Default for LuaElectricSubNetworkSetAccumulatorsEnergyParams
Source§fn default() -> LuaElectricSubNetworkSetAccumulatorsEnergyParams
fn default() -> LuaElectricSubNetworkSetAccumulatorsEnergyParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl RefUnwindSafe for LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl Send for LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl Sync for LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl Unpin for LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl UnsafeUnpin for LuaElectricSubNetworkSetAccumulatorsEnergyParams
impl UnwindSafe for LuaElectricSubNetworkSetAccumulatorsEnergyParams
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