pub enum RawSignalValidationError {
EntryRisk {
value: f64,
},
EntryPriceRequired {
order_type: OrderType,
},
EntryPrice {
value: f64,
},
StoplossNotProtective,
TargetWrongSide,
PartialCloseRatio {
value: f64,
},
ManagementPrice {
value: f64,
},
TargetPricePair {
old_price: f64,
new_price: f64,
},
ScaleIn,
}Expand description
A raw signal that violates the common signal contract.
Variants§
EntryRisk
EntryPriceRequired
EntryPrice
StoplossNotProtective
TargetWrongSide
PartialCloseRatio
ManagementPrice
TargetPricePair
ScaleIn
Trait Implementations§
Source§impl Clone for RawSignalValidationError
impl Clone for RawSignalValidationError
Source§fn clone(&self) -> RawSignalValidationError
fn clone(&self) -> RawSignalValidationError
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 RawSignalValidationError
impl Debug for RawSignalValidationError
Source§impl Display for RawSignalValidationError
impl Display for RawSignalValidationError
Source§impl Error for RawSignalValidationError
impl Error for RawSignalValidationError
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 RawSignalValidationError
impl PartialEq for RawSignalValidationError
impl StructuralPartialEq for RawSignalValidationError
Auto Trait Implementations§
impl Freeze for RawSignalValidationError
impl RefUnwindSafe for RawSignalValidationError
impl Send for RawSignalValidationError
impl Sync for RawSignalValidationError
impl Unpin for RawSignalValidationError
impl UnsafeUnpin for RawSignalValidationError
impl UnwindSafe for RawSignalValidationError
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