#[non_exhaustive]pub struct McOpfDevice {
pub identity: String,
pub kind: McOpfDeviceKind,
pub source_row: usize,
pub terminals: Vec<usize>,
pub coils: Vec<McOpfCoil>,
pub neutral_current_max: Option<f64>,
pub net_active_bounds: Option<[f64; 2]>,
}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: StringOriginal device name.
kind: McOpfDeviceKindSource table and injection/consumption convention.
source_row: usizeZero-based row in the canonical table identified by kind.
terminals: Vec<usize>Original terminal-map order, including neutral, for result projection.
coils: Vec<McOpfCoil>Connection-defined coil order, distinct from terminal order.
neutral_current_max: Option<f64>Optional magnitude cap on the return current sum, per unit.
net_active_bounds: Option<[f64; 2]>Optional bounds on the sum of coil active injections, per unit, including isolated DC-link balance.
Trait Implementations§
Source§impl Clone for McOpfDevice
impl Clone for McOpfDevice
Source§impl Debug for McOpfDevice
impl Debug for McOpfDevice
Source§impl<'de> Deserialize<'de> for McOpfDevice
impl<'de> Deserialize<'de> for McOpfDevice
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 McOpfDevice
impl RefUnwindSafe for McOpfDevice
impl Send for McOpfDevice
impl Sync for McOpfDevice
impl Unpin for McOpfDevice
impl UnsafeUnpin for McOpfDevice
impl UnwindSafe for McOpfDevice
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