pub enum ProfileApplicationError {
Show 17 variants
InvalidNumericInput {
field: String,
value: f64,
},
ZeroTargetIndex,
DuplicateTargetIndex {
index: usize,
},
DuplicateTargetPrice {
price: f64,
},
MissingTargetIndex {
index: usize,
available: usize,
},
TargetWeightCountMismatch {
targets: usize,
weights: usize,
},
InvalidTargetWeight {
position: usize,
weight: f64,
},
TargetWeightSumExceeded {
sum: f64,
},
TargetWeightSumIncomplete {
sum: f64,
},
InvalidTargetGeometry {
index: usize,
side: Side,
entry: f64,
target: f64,
},
InvalidStopGeometry {
side: Side,
entry: f64,
stoploss: f64,
},
SizeNotMultipleOfLotStep {
size: f64,
lot_step: f64,
},
LotUnitCountOverflow {
size: f64,
lot_step: f64,
},
ZeroUnitAllocation {
position: usize,
},
InvalidRemainder {
remainder: f64,
},
TargetWeightRemainderMismatch {
sum: f64,
remainder: f64,
},
InvalidCountInput {
field: String,
value: u64,
},
}Expand description
Strict validation failures returned by the canonical entry resolvers.
Variants§
InvalidNumericInput
ZeroTargetIndex
DuplicateTargetIndex
DuplicateTargetPrice
MissingTargetIndex
TargetWeightCountMismatch
InvalidTargetWeight
TargetWeightSumExceeded
TargetWeightSumIncomplete
InvalidTargetGeometry
InvalidStopGeometry
SizeNotMultipleOfLotStep
LotUnitCountOverflow
ZeroUnitAllocation
InvalidRemainder
TargetWeightRemainderMismatch
InvalidCountInput
Trait Implementations§
Source§impl Clone for ProfileApplicationError
impl Clone for ProfileApplicationError
Source§fn clone(&self) -> ProfileApplicationError
fn clone(&self) -> ProfileApplicationError
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 ProfileApplicationError
impl Debug for ProfileApplicationError
Source§impl Display for ProfileApplicationError
impl Display for ProfileApplicationError
Source§impl Error for ProfileApplicationError
impl Error for ProfileApplicationError
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 ProfileApplicationError
impl PartialEq for ProfileApplicationError
impl StructuralPartialEq for ProfileApplicationError
Auto Trait Implementations§
impl Freeze for ProfileApplicationError
impl RefUnwindSafe for ProfileApplicationError
impl Send for ProfileApplicationError
impl Sync for ProfileApplicationError
impl Unpin for ProfileApplicationError
impl UnsafeUnpin for ProfileApplicationError
impl UnwindSafe for ProfileApplicationError
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