pub struct GenDiff {
pub bus: u32,
pub id: String,
pub kind: DiffKind,
pub p: Option<(f64, f64)>,
pub q: Option<(f64, f64)>,
pub pmin: Option<(f64, f64)>,
pub pmax: Option<(f64, f64)>,
pub qmin: Option<(f64, f64)>,
pub qmax: Option<(f64, f64)>,
pub in_service: Option<(bool, bool)>,
pub cost: Option<(String, String)>,
}Expand description
Diff entry for a generator. Modified fields are Some with (old, new).
Fields§
§bus: u32§id: String§kind: DiffKind§p: Option<(f64, f64)>§q: Option<(f64, f64)>§pmin: Option<(f64, f64)>§pmax: Option<(f64, f64)>§qmin: Option<(f64, f64)>§qmax: Option<(f64, f64)>§in_service: Option<(bool, bool)>§cost: Option<(String, String)>Cost change shown as debug strings when the cost curves differ.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GenDiff
impl<'de> Deserialize<'de> for GenDiff
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 GenDiff
impl RefUnwindSafe for GenDiff
impl Send for GenDiff
impl Sync for GenDiff
impl Unpin for GenDiff
impl UnsafeUnpin for GenDiff
impl UnwindSafe for GenDiff
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