Struct Shunt
#[non_exhaustive]pub struct Shunt {
pub bus: BusId,
pub g: f64,
pub b: f64,
pub in_service: bool,
pub section_count: Option<u32>,
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§section_count: Option<u32>Number of shunt sections assigned in service. None records that the
source left the assignment unset.
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§
§impl<'de> Deserialize<'de> for Shunt
impl<'de> Deserialize<'de> for Shunt
§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
§impl JsonSchema for Shunt
impl JsonSchema for Shunt
§fn schema_name() -> Cow<'static, str>
fn schema_name() -> Cow<'static, str>
The name of the generated JSON Schema. Read more
§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read more§impl Serialize for Shunt
impl Serialize for Shunt
§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
impl StructuralPartialEq for Shunt
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§
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