#[non_exhaustive]pub enum NetworkUpdate {
BranchThermalRating {
branch: ComponentId,
terminal: Option<String>,
rating: ApparentPower,
},
}Expand description
The calculation types used by solver consumers. The full problem
vocabulary lives in powerio_prob; these types sit at the facade root so
a consumer does not need a second PowerIO dependency to name its boundary.
An update to a physical network parameter or limit. Every replacement is
absolute. A conductor resolved line rating names one terminal; a balanced
branch rating leaves terminal as None.
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.
BranchThermalRating
Trait Implementations§
Source§impl Clone for NetworkUpdate
impl Clone for NetworkUpdate
Source§fn clone(&self) -> NetworkUpdate
fn clone(&self) -> NetworkUpdate
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 NetworkUpdate
impl Debug for NetworkUpdate
Source§impl<'de> Deserialize<'de> for NetworkUpdate
impl<'de> Deserialize<'de> for NetworkUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NetworkUpdate> for CalculationUpdate
impl From<NetworkUpdate> for CalculationUpdate
Source§fn from(update: NetworkUpdate) -> CalculationUpdate
fn from(update: NetworkUpdate) -> CalculationUpdate
Converts to this type from the input type.
Source§impl JsonSchema for NetworkUpdate
impl JsonSchema for NetworkUpdate
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 NetworkUpdate
impl PartialEq for NetworkUpdate
Source§fn eq(&self, other: &NetworkUpdate) -> bool
fn eq(&self, other: &NetworkUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NetworkUpdate
impl Serialize for NetworkUpdate
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
impl StructuralPartialEq for NetworkUpdate
Auto Trait Implementations§
impl Freeze for NetworkUpdate
impl RefUnwindSafe for NetworkUpdate
impl Send for NetworkUpdate
impl Sync for NetworkUpdate
impl Unpin for NetworkUpdate
impl UnsafeUnpin for NetworkUpdate
impl UnwindSafe for NetworkUpdate
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