pub enum RunCurrencyPlanError {
Show 13 variants
InvalidCurrencyCode {
field: String,
value: String,
},
EmptySymbol {
kind: &'static str,
},
MissingPrimaryPnlCurrency {
symbol: String,
},
UnexpectedPrimaryPnlCurrency {
symbol: String,
},
MissingConversionRoute {
source_currency: String,
},
DuplicateSourceCurrency {
source_currency: String,
},
RouteSourceMismatch {
source_currency: String,
route_source_currency: String,
},
RouteDestinationMismatch {
source_currency: String,
route_destination_currency: String,
account_currency: String,
},
InvalidRoute {
source_currency: String,
reason: String,
},
UndeclaredRouteSymbol {
source_currency: String,
symbol: String,
},
UndeclaredWarmupSymbol {
symbol: String,
},
InvalidWarmupQuote {
symbol: String,
quote_ts: NaiveDateTime,
reason: QuoteValidationError,
},
DuplicateWarmupQuote {
symbol: String,
quote_ts: NaiveDateTime,
},
}Expand description
Validation errors for an immutable run currency plan.
Variants§
InvalidCurrencyCode
EmptySymbol
MissingPrimaryPnlCurrency
UnexpectedPrimaryPnlCurrency
MissingConversionRoute
DuplicateSourceCurrency
RouteSourceMismatch
RouteDestinationMismatch
InvalidRoute
UndeclaredRouteSymbol
UndeclaredWarmupSymbol
InvalidWarmupQuote
DuplicateWarmupQuote
Trait Implementations§
Source§impl Clone for RunCurrencyPlanError
impl Clone for RunCurrencyPlanError
Source§fn clone(&self) -> RunCurrencyPlanError
fn clone(&self) -> RunCurrencyPlanError
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 RunCurrencyPlanError
impl Debug for RunCurrencyPlanError
Source§impl Display for RunCurrencyPlanError
impl Display for RunCurrencyPlanError
Source§impl Error for RunCurrencyPlanError
impl Error for RunCurrencyPlanError
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 RunCurrencyPlanError
impl PartialEq for RunCurrencyPlanError
impl StructuralPartialEq for RunCurrencyPlanError
Auto Trait Implementations§
impl Freeze for RunCurrencyPlanError
impl RefUnwindSafe for RunCurrencyPlanError
impl Send for RunCurrencyPlanError
impl Sync for RunCurrencyPlanError
impl Unpin for RunCurrencyPlanError
impl UnsafeUnpin for RunCurrencyPlanError
impl UnwindSafe for RunCurrencyPlanError
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