pub struct EfficiencyReport {
pub period_start: f64,
pub period_end: f64,
pub total_generation_gwh: f64,
pub total_demand_gwh: f64,
pub total_losses_gwh: f64,
pub loss_factor_pct: f64,
pub renewable_fraction_pct: f64,
pub capacity_factor_pct: f64,
pub load_factor_pct: f64,
pub co2_intensity_g_per_kwh: f64,
pub cost_per_gwh_musd: f64,
}Expand description
Aggregated efficiency metrics for a reporting period.
Fields§
§period_start: f64Start of the reporting period (Unix epoch, seconds).
period_end: f64End of the reporting period (Unix epoch, seconds).
total_generation_gwh: f64Total generated energy [GWh].
total_demand_gwh: f64Total served demand [GWh].
total_losses_gwh: f64Total network losses [GWh].
loss_factor_pct: f64Loss factor = losses / generation × 100 [%].
renewable_fraction_pct: f64Renewable energy fraction = renewable / generation × 100 [%].
capacity_factor_pct: f64Capacity factor = average generation / peak generation × 100 [%].
load_factor_pct: f64Load factor = average demand / peak demand × 100 [%].
co2_intensity_g_per_kwh: f64Carbon intensity [g CO₂/kWh]; caller-supplied or zero.
cost_per_gwh_musd: f64Weighted average cost [M USD / GWh]; caller-supplied or zero.
Trait Implementations§
Source§impl Clone for EfficiencyReport
impl Clone for EfficiencyReport
Source§fn clone(&self) -> EfficiencyReport
fn clone(&self) -> EfficiencyReport
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 moreAuto Trait Implementations§
impl Freeze for EfficiencyReport
impl RefUnwindSafe for EfficiencyReport
impl Send for EfficiencyReport
impl Sync for EfficiencyReport
impl Unpin for EfficiencyReport
impl UnsafeUnpin for EfficiencyReport
impl UnwindSafe for EfficiencyReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.