pub struct PowerInjection {
pub bus: u32,
pub id: String,
pub kind: PowerInjectionKind,
pub active_power_injection_mw: f64,
pub reactive_power_injection_mvar: f64,
pub in_service: bool,
}Expand description
A fixed P/Q injection at a bus.
Positive real/reactive values mean injection into the network. Bus demand is derived by subtracting these injections from the hosting bus aggregate.
Fields§
§bus: u32Bus number where the equipment is connected.
id: StringStable equipment identifier.
kind: PowerInjectionKindInjection classification.
active_power_injection_mw: f64Real power injection in MW. Positive = inject into the network.
reactive_power_injection_mvar: f64Reactive power injection in MVAr. Positive = inject into the network.
in_service: boolIn-service status.
Implementations§
Trait Implementations§
Source§impl Clone for PowerInjection
impl Clone for PowerInjection
Source§fn clone(&self) -> PowerInjection
fn clone(&self) -> PowerInjection
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 PowerInjection
impl Debug for PowerInjection
Source§impl Default for PowerInjection
impl Default for PowerInjection
Source§impl<'de> Deserialize<'de> for PowerInjection
impl<'de> Deserialize<'de> for PowerInjection
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 PowerInjection
impl RefUnwindSafe for PowerInjection
impl Send for PowerInjection
impl Sync for PowerInjection
impl Unpin for PowerInjection
impl UnsafeUnpin for PowerInjection
impl UnwindSafe for PowerInjection
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