#[non_exhaustive]pub struct Shunt {
pub bus: BusId,
pub g: f64,
pub b: f64,
pub in_service: bool,
pub control: Option<SwitchedShuntControl>,
pub uid: Option<String>,
pub extras: BTreeMap<String, Value>,
}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.bus: BusId§g: f64Shunt conductance (MW at V = 1 p.u.).
b: f64Shunt susceptance (MVAr at V = 1 p.u.). For a switched shunt this is the
initial (steady-state) value within the control blocks.
in_service: bool§control: Option<SwitchedShuntControl>Switching-control data when this is a switched (adjustable) shunt; None
for a fixed shunt. #[serde(default)] so JSON written before the field
existed still deserializes.
uid: Option<String>Stable row identity; see Bus::uid.
extras: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shunt
impl<'de> Deserialize<'de> for Shunt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Shunt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Shunt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Shunt
impl Serialize for Shunt
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 Shunt
impl RefUnwindSafe for Shunt
impl Send for Shunt
impl Sync for Shunt
impl Unpin for Shunt
impl UnsafeUnpin for Shunt
impl UnwindSafe for Shunt
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