#[non_exhaustive]pub struct McOpfVoltageLimit {
pub identity: String,
pub positive: usize,
pub negative: Option<usize>,
pub lower: Option<f64>,
pub upper: Option<f64>,
pub combination: Vec<(usize, [f64; 2])>,
}Expand description
A magnitude bound on a difference of terminal voltages, in per unit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identity: StringStable diagnostic identity derived from the source limit.
positive: usizeIndex into preparation.terminals for ordinary voltage differences.
negative: Option<usize>Return terminal index, or physical ground when absent.
lower: Option<f64>Optional per-unit magnitude lower bound, not squared.
upper: Option<f64>Optional per-unit magnitude upper bound, not squared.
combination: Vec<(usize, [f64; 2])>For sequence limits: (terminal index, complex coefficient) of the measured voltage; empty for ordinary differences.
Trait Implementations§
Source§impl Clone for McOpfVoltageLimit
impl Clone for McOpfVoltageLimit
Source§impl Debug for McOpfVoltageLimit
impl Debug for McOpfVoltageLimit
Source§impl<'de> Deserialize<'de> for McOpfVoltageLimit
impl<'de> Deserialize<'de> for McOpfVoltageLimit
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 McOpfVoltageLimit
impl RefUnwindSafe for McOpfVoltageLimit
impl Send for McOpfVoltageLimit
impl Sync for McOpfVoltageLimit
impl Unpin for McOpfVoltageLimit
impl UnsafeUnpin for McOpfVoltageLimit
impl UnwindSafe for McOpfVoltageLimit
Blanket Implementations§
impl<T> Allocation for T
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