#[non_exhaustive]pub enum StudyEdit {
DemandDelta {
bus: ElementRef,
p_mw: f64,
q_mvar: Option<f64>,
},
RatingDelta {
branch: ElementRef,
delta_mw: f64,
},
SetFields {
update: ElementUpdate,
},
Unknown {
kind: String,
value: Value,
},
}Expand description
One study edit. Unknown edit kinds are preserved and rejected only when a caller tries to materialize them.
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.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StudyEdit
impl<'de> Deserialize<'de> for StudyEdit
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StudyEdit
Available on crate feature schema only.
impl JsonSchema for StudyEdit
Available on crate feature
schema only.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 moreimpl StructuralPartialEq for StudyEdit
Auto Trait Implementations§
impl Freeze for StudyEdit
impl RefUnwindSafe for StudyEdit
impl Send for StudyEdit
impl Sync for StudyEdit
impl Unpin for StudyEdit
impl UnsafeUnpin for StudyEdit
impl UnwindSafe for StudyEdit
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