pub struct BranchDiff {
pub from_bus: u32,
pub to_bus: u32,
pub circuit: String,
pub kind: DiffKind,
pub r: Option<(f64, f64)>,
pub x: Option<(f64, f64)>,
pub b: Option<(f64, f64)>,
pub rating_a_mva: Option<(f64, f64)>,
pub tap: Option<(f64, f64)>,
pub phase_shift_rad: Option<(f64, f64)>,
pub in_service: Option<(bool, bool)>,
}Expand description
Diff entry for a branch. Modified fields are Some with (old, new).
Fields§
§from_bus: u32§to_bus: u32§circuit: String§kind: DiffKind§r: Option<(f64, f64)>§x: Option<(f64, f64)>§b: Option<(f64, f64)>§rating_a_mva: Option<(f64, f64)>§tap: Option<(f64, f64)>§phase_shift_rad: Option<(f64, f64)>§in_service: Option<(bool, bool)>Trait Implementations§
Source§impl Clone for BranchDiff
impl Clone for BranchDiff
Source§fn clone(&self) -> BranchDiff
fn clone(&self) -> BranchDiff
Returns a duplicate of the value. Read more
1.0.0 · 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 BranchDiff
impl Debug for BranchDiff
Source§impl<'de> Deserialize<'de> for BranchDiff
impl<'de> Deserialize<'de> for BranchDiff
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
Auto Trait Implementations§
impl Freeze for BranchDiff
impl RefUnwindSafe for BranchDiff
impl Send for BranchDiff
impl Sync for BranchDiff
impl Unpin for BranchDiff
impl UnsafeUnpin for BranchDiff
impl UnwindSafe for BranchDiff
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