pub struct BranchRef {
pub from_bus: u32,
pub to_bus: u32,
pub circuit: String,
}Expand description
Stable directional branch identity.
Unlike crate::network::BranchEquipmentKey, this preserves authored
direction so interfaces, flowgates, and equipment refs can express a signed
flow convention directly.
Fields§
§from_bus: u32§to_bus: u32§circuit: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BranchRef
impl<'de> Deserialize<'de> for BranchRef
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
impl Eq for BranchRef
impl StructuralPartialEq for BranchRef
Auto Trait Implementations§
impl Freeze for BranchRef
impl RefUnwindSafe for BranchRef
impl Send for BranchRef
impl Sync for BranchRef
impl Unpin for BranchRef
impl UnsafeUnpin for BranchRef
impl UnwindSafe for BranchRef
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