#[non_exhaustive]pub struct Bus {}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.id: BusIdStable bus id (1-based in MATPOWER; preserved verbatim).
kind: BusType§vm: f64Voltage magnitude (p.u.).
va: f64Voltage angle (degrees).
base_kv: f64§vmax: f64§vmin: f64§evhi: Option<f64>Emergency (short-term) voltage band, set only when the source states one
distinct from the normal vmax/vmin band (PSS/E
EVHI/EVLO). None means the emergency band equals the normal band, so
read evhi.unwrap_or(vmax) / evlo.unwrap_or(vmin). #[serde(default)] so
JSON written before the fields existed still deserializes.
evlo: Option<f64>§area: usize§zone: usize§name: Option<String>§uid: Option<String>Stable row identity for .pio.json payloads and operating point updates:
the source record uid where the format defines one (GOC3), synthesized at
package build otherwise. #[serde(default)] so JSON written before the
field existed still deserializes.
extras: ExtrasImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bus
impl<'de> Deserialize<'de> for Bus
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 Bus
impl RefUnwindSafe for Bus
impl Send for Bus
impl Sync for Bus
impl Unpin for Bus
impl UnsafeUnpin for Bus
impl UnwindSafe for Bus
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