pub struct FlowBalanceSummary {
pub total_inflow: f64,
pub total_outflow: f64,
pub tank_change: f64,
pub unaccounted: f64,
pub ratio: f64,
}Expand description
Derived flow balance results ready for display or serialisation.
Fields§
§total_inflow: f64Total volume supplied into the network (m³).
total_outflow: f64Total volume consumed / withdrawn (m³).
tank_change: f64Change in total tank storage (current − initial), positive = net fill.
unaccounted: f64Unaccounted volume: inflow − outflow − tank_change.
ratio: f64Volume balance ratio (≈ 1.0 when balanced).
Trait Implementations§
Source§impl Clone for FlowBalanceSummary
impl Clone for FlowBalanceSummary
Source§fn clone(&self) -> FlowBalanceSummary
fn clone(&self) -> FlowBalanceSummary
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 FlowBalanceSummary
impl Debug for FlowBalanceSummary
Source§impl<'de> Deserialize<'de> for FlowBalanceSummary
impl<'de> Deserialize<'de> for FlowBalanceSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlowBalanceSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlowBalanceSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FlowBalanceSummary
impl Serialize for FlowBalanceSummary
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
Auto Trait Implementations§
impl Freeze for FlowBalanceSummary
impl RefUnwindSafe for FlowBalanceSummary
impl Send for FlowBalanceSummary
impl Sync for FlowBalanceSummary
impl Unpin for FlowBalanceSummary
impl UnsafeUnpin for FlowBalanceSummary
impl UnwindSafe for FlowBalanceSummary
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