pub enum AddOutputError {
NoData,
InvalidDateTime(DateTimeError),
GenerationTooHigh {
generation: f32,
system_size: u32,
date: Date,
},
ExportTooHigh {
export: f32,
system_size: u32,
date: Date,
},
ExportExceedsGeneration {
export: f32,
generation: f32,
},
ConsumptionTooHigh(f32, Date),
PeakPowerTooHigh {
peak_power: f32,
system_size: u32,
date: Date,
},
MaxTemperatureWithoutMin(Date),
MinTemperatureWithoutMax(Date),
}Expand description
Errors that can occur when adding output data to a system using crate::Client::add_outputs.
Variants§
NoData
No data were provided.
InvalidDateTime(DateTimeError)
The provided date or time was invalid.
GenerationTooHigh
The generation value is too high for the system size.
ExportTooHigh
The export value is too high for the system size.
ExportExceedsGeneration
The export value exceeds the generation value by more than 15%.
ConsumptionTooHigh(f32, Date)
The consumption value is above 999,999,999 Wh for the provided date.
PeakPowerTooHigh
The peak power on the provided date is ≥50% greater than the system size.
MaxTemperatureWithoutMin(Date)
A maximum temperature was specified for this date without a minimum temperature.
MinTemperatureWithoutMax(Date)
A minimum temperature was specified for this date without a maximum temperature.
Trait Implementations§
Source§impl Clone for AddOutputError
impl Clone for AddOutputError
Source§fn clone(&self) -> AddOutputError
fn clone(&self) -> AddOutputError
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 AddOutputError
impl Debug for AddOutputError
Source§impl Display for AddOutputError
impl Display for AddOutputError
Source§impl Error for AddOutputError
impl Error for AddOutputError
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 From<AddOutputError> for ClientError<AddOutputError>
impl From<AddOutputError> for ClientError<AddOutputError>
Source§fn from(error: AddOutputError) -> Self
fn from(error: AddOutputError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddOutputError
impl PartialEq for AddOutputError
impl StructuralPartialEq for AddOutputError
Auto Trait Implementations§
impl Freeze for AddOutputError
impl RefUnwindSafe for AddOutputError
impl Send for AddOutputError
impl Sync for AddOutputError
impl Unpin for AddOutputError
impl UnwindSafe for AddOutputError
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.