pub struct PrescribedTerminalPower {
pub load: String,
pub terminals: Vec<String>,
pub p_w: Vec<f64>,
pub q_var: Vec<f64>,
pub voltage_model: DistLoadVoltageModel,
}Expand description
One load’s prescribed terminal power: the load’s stated per phase complex power, keyed by the load’s name and its terminal map. Watts and vars, as the network states them.
Fields§
§load: String§terminals: Vec<String>The load’s terminals, in its stated terminal map order.
p_w: Vec<f64>Watts per terminal, aligned to terminals.
q_var: Vec<f64>Vars per terminal, aligned to terminals.
voltage_model: DistLoadVoltageModelThe load’s stated voltage dependence.
Trait Implementations§
Source§impl Clone for PrescribedTerminalPower
impl Clone for PrescribedTerminalPower
Source§fn clone(&self) -> PrescribedTerminalPower
fn clone(&self) -> PrescribedTerminalPower
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 Debug for PrescribedTerminalPower
impl Debug for PrescribedTerminalPower
Source§impl<'de> Deserialize<'de> for PrescribedTerminalPower
impl<'de> Deserialize<'de> for PrescribedTerminalPower
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
Source§impl PartialEq for PrescribedTerminalPower
impl PartialEq for PrescribedTerminalPower
Source§fn eq(&self, other: &PrescribedTerminalPower) -> bool
fn eq(&self, other: &PrescribedTerminalPower) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrescribedTerminalPower
impl Serialize for PrescribedTerminalPower
impl StructuralPartialEq for PrescribedTerminalPower
Auto Trait Implementations§
impl Freeze for PrescribedTerminalPower
impl RefUnwindSafe for PrescribedTerminalPower
impl Send for PrescribedTerminalPower
impl Sync for PrescribedTerminalPower
impl Unpin for PrescribedTerminalPower
impl UnsafeUnpin for PrescribedTerminalPower
impl UnwindSafe for PrescribedTerminalPower
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