#[non_exhaustive]pub struct RemovedSwitch {
pub row: usize,
pub identity: String,
pub from: BusId,
pub to: BusId,
pub survivor: BusId,
pub reason: RemovalReason,
pub closed: bool,
pub thermal_rating: Option<f64>,
}Expand description
A switch the merge removed.
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.row: usizeRow in the source network’s switch table.
identity: StringThe switch’s uid, else switches:{row}.
from: BusId§to: BusId§survivor: BusId§reason: RemovalReason§closed: bool§thermal_rating: Option<f64>Thermal rating in MVA, when stated.
Trait Implementations§
Source§impl Clone for RemovedSwitch
impl Clone for RemovedSwitch
Source§fn clone(&self) -> RemovedSwitch
fn clone(&self) -> RemovedSwitch
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 RemovedSwitch
impl Debug for RemovedSwitch
Source§impl PartialEq for RemovedSwitch
impl PartialEq for RemovedSwitch
impl StructuralPartialEq for RemovedSwitch
Auto Trait Implementations§
impl Freeze for RemovedSwitch
impl RefUnwindSafe for RemovedSwitch
impl Send for RemovedSwitch
impl Sync for RemovedSwitch
impl Unpin for RemovedSwitch
impl UnsafeUnpin for RemovedSwitch
impl UnwindSafe for RemovedSwitch
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