pub enum CostValidationError {
InvalidCommissionAmount {
amount: f64,
},
InvalidCommissionRate {
rate: f64,
},
InvalidSwapAmount {
amount: f64,
},
MissingCurrency {
field: &'static str,
},
TripleWeekdaySkipped,
TooManySkippedWeekdays,
CurrencyMismatch {
declared: String,
account: String,
},
}Expand description
Configuration failures detected before a run starts.
Variants§
InvalidCommissionAmount
InvalidCommissionRate
InvalidSwapAmount
MissingCurrency
TripleWeekdaySkipped
TooManySkippedWeekdays
CurrencyMismatch
Trait Implementations§
Source§impl Clone for CostValidationError
impl Clone for CostValidationError
Source§impl Debug for CostValidationError
impl Debug for CostValidationError
Source§impl Display for CostValidationError
impl Display for CostValidationError
Source§impl Error for CostValidationError
impl Error for CostValidationError
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 CostValidationError
impl PartialEq for CostValidationError
impl StructuralPartialEq for CostValidationError
Auto Trait Implementations§
impl Freeze for CostValidationError
impl RefUnwindSafe for CostValidationError
impl Send for CostValidationError
impl Sync for CostValidationError
impl Unpin for CostValidationError
impl UnsafeUnpin for CostValidationError
impl UnwindSafe for CostValidationError
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