#[non_exhaustive]pub enum MonitorStatement {
BranchesInSubsystem {
subsystem: String,
low_voltage_3w: bool,
},
TiesFromSubsystem {
subsystem: String,
},
Branches {
branches: Vec<BranchRef>,
retained: Vec<RetainedStatement>,
},
Interface {
name: String,
rating_mw: Option<f64>,
branches: Vec<BranchRef>,
retained: Vec<RetainedStatement>,
},
VoltageRange {
scope: MonitorScope,
vmin: f64,
vmax: f64,
},
VoltageDeviation {
scope: MonitorScope,
down: f64,
up: Option<f64>,
},
}Expand description
One monitor statement.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BranchesInSubsystem
Every branch with both terminals in the subsystem.
Fields
TiesFromSubsystem
Every branch with exactly one terminal in the subsystem.
Branches
The branches a MONITOR BRANCHES block lists by terminal pair.
Fields
§
retained: Vec<RetainedStatement>The block’s lines that state no branch, kept as text. The writer
states them inside the block, before its END.
Interface
A named interface and the branches whose flows sum over it.
Fields
§
retained: Vec<RetainedStatement>The block’s lines that state no branch, kept as text. The writer
states them inside the block, before its END.
VoltageRange
A voltage magnitude band over a scope of buses.
VoltageDeviation
A voltage deviation band over a scope of buses. A statement naming one value states the downward limit alone.
Trait Implementations§
Source§impl Clone for MonitorStatement
impl Clone for MonitorStatement
Source§fn clone(&self) -> MonitorStatement
fn clone(&self) -> MonitorStatement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonitorStatement
impl Debug for MonitorStatement
Source§impl<'de> Deserialize<'de> for MonitorStatement
impl<'de> Deserialize<'de> for MonitorStatement
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
Source§impl JsonSchema for MonitorStatement
impl JsonSchema for MonitorStatement
Source§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
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§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 moreSource§impl PartialEq for MonitorStatement
impl PartialEq for MonitorStatement
Source§fn eq(&self, other: &MonitorStatement) -> bool
fn eq(&self, other: &MonitorStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MonitorStatement
impl Serialize for MonitorStatement
impl StructuralPartialEq for MonitorStatement
Auto Trait Implementations§
impl Freeze for MonitorStatement
impl RefUnwindSafe for MonitorStatement
impl Send for MonitorStatement
impl Sync for MonitorStatement
impl Unpin for MonitorStatement
impl UnsafeUnpin for MonitorStatement
impl UnwindSafe for MonitorStatement
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