pub enum StorageValidationError {
InvalidChargeEfficiency(f64),
InvalidDischargeEfficiency(f64),
InvalidEnergyCapacity(f64),
InvalidSocRange {
soc_min_mwh: f64,
soc_max_mwh: f64,
},
InvalidInitialSoc {
soc_initial_mwh: f64,
soc_min_mwh: f64,
soc_max_mwh: f64,
},
InvalidDischargeFoldback {
threshold: f64,
soc_min: f64,
soc_max: f64,
},
InvalidChargeFoldback {
threshold: f64,
soc_min: f64,
soc_max: f64,
},
InvalidDailyCycleLimit(f64),
}Expand description
Validation error for StorageParams.
Variants§
InvalidChargeEfficiency(f64)
InvalidDischargeEfficiency(f64)
InvalidEnergyCapacity(f64)
InvalidSocRange
InvalidInitialSoc
InvalidDischargeFoldback
InvalidChargeFoldback
InvalidDailyCycleLimit(f64)
Trait Implementations§
Source§impl Clone for StorageValidationError
impl Clone for StorageValidationError
Source§fn clone(&self) -> StorageValidationError
fn clone(&self) -> StorageValidationError
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 moreSource§impl Debug for StorageValidationError
impl Debug for StorageValidationError
Source§impl Display for StorageValidationError
impl Display for StorageValidationError
Source§impl Error for StorageValidationError
impl Error for StorageValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for StorageValidationError
impl PartialEq for StorageValidationError
impl StructuralPartialEq for StorageValidationError
Auto Trait Implementations§
impl Freeze for StorageValidationError
impl RefUnwindSafe for StorageValidationError
impl Send for StorageValidationError
impl Sync for StorageValidationError
impl Unpin for StorageValidationError
impl UnsafeUnpin for StorageValidationError
impl UnwindSafe for StorageValidationError
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