#[non_exhaustive]pub struct Area {
pub number: usize,
pub slack_bus: Option<BusId>,
pub net_interchange: f64,
pub tolerance: f64,
pub name: Option<String>,
}Expand description
An area record: the area’s scheduled net interchange and its swing bus.
The number matches the area field carried on each
Bus; this table holds the per-area metadata (the interchange target and
the area slack) that the bus number alone can’t. Maps to the PSS/E area record
(I, ISW, PDES, PTOL, ARNAME).
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.number: usize§slack_bus: Option<BusId>The area swing (slack) bus, or None when unset.
net_interchange: f64Scheduled net interchange (MW); positive is export out of the area.
tolerance: f64Interchange tolerance bandwidth (MW).
name: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Area
impl<'de> Deserialize<'de> for Area
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Area, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Area, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Area
impl Serialize for Area
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnsafeUnpin for Area
impl UnwindSafe for Area
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