pub struct ProductionModelFile {
pub configs: Vec<ProductionModelConfig>,
pub plane_reduction: Option<PlaneReductionConfig>,
}Expand description
Parsed contents of system/hydro_production_models.json.
Bundles the per-hydro production model configs with the optional file-level
FPHA plane-reduction block. plane_reduction is None when the file carries
no fpha_plane_reduction key (the off-by-default case).
Fields§
§configs: Vec<ProductionModelConfig>Per-hydro production model configurations, sorted by hydro_id ascending.
plane_reduction: Option<PlaneReductionConfig>File-level similar-hyperplane reduction config, applied uniformly to
every plant. None ⇒ no reduction.
Trait Implementations§
Source§impl Clone for ProductionModelFile
impl Clone for ProductionModelFile
Source§fn clone(&self) -> ProductionModelFile
fn clone(&self) -> ProductionModelFile
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 ProductionModelFile
impl Debug for ProductionModelFile
Source§impl Default for ProductionModelFile
impl Default for ProductionModelFile
Source§fn default() -> ProductionModelFile
fn default() -> ProductionModelFile
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProductionModelFile
impl PartialEq for ProductionModelFile
impl StructuralPartialEq for ProductionModelFile
Auto Trait Implementations§
impl Freeze for ProductionModelFile
impl RefUnwindSafe for ProductionModelFile
impl Send for ProductionModelFile
impl Sync for ProductionModelFile
impl Unpin for ProductionModelFile
impl UnsafeUnpin for ProductionModelFile
impl UnwindSafe for ProductionModelFile
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more