#[non_exhaustive]pub enum RequestValidationError {
Show 14 variants
NonPositiveOrderSize,
NonPositiveReplacementSize,
EmptyModification,
NonPositiveBracketTicks,
UnsupportedOrderType {
code: i32,
},
UnsupportedOrderSide {
code: i32,
},
UnsupportedOrderStatus {
code: i32,
},
NonPositiveOrderPageSize,
NegativeOrderPageOffset,
NonPositiveHistoryUnitNumber,
HistoryLimitOutOfRange,
HistoryRangeNotIncreasing,
SearchRangeNotIncreasing,
NonPositivePartialCloseSize,
}Expand description
Validation failures while constructing a provider request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NonPositiveOrderSize
An order placement quantity was zero or negative.
NonPositiveReplacementSize
A replacement quantity was zero or negative.
EmptyModification
An order modification contained no replacement values.
NonPositiveBracketTicks
A bracket distance was zero or negative.
UnsupportedOrderType
An order request used an undocumented or unknown provider type code.
UnsupportedOrderSide
An order request used a provider side code unknown to this crate version.
UnsupportedOrderStatus
An order query used a provider status code unknown to this crate version.
NonPositiveOrderPageSize
A v2 order query requested a zero or negative page size.
NegativeOrderPageOffset
A v2 order query requested a negative page offset.
NonPositiveHistoryUnitNumber
A historical-bar unit count was zero or negative.
HistoryLimitOutOfRange
A historical-bar limit exceeded the provider-supported range.
HistoryRangeNotIncreasing
A historical-bar range ended at or before its start.
SearchRangeNotIncreasing
An order or trade search ended at or before its start.
NonPositivePartialCloseSize
A partial-close quantity was zero or negative.
Trait Implementations§
Source§impl Clone for RequestValidationError
impl Clone for RequestValidationError
Source§fn clone(&self) -> RequestValidationError
fn clone(&self) -> RequestValidationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RequestValidationError
Source§impl Debug for RequestValidationError
impl Debug for RequestValidationError
Source§impl Display for RequestValidationError
impl Display for RequestValidationError
impl Eq for RequestValidationError
Source§impl Error for RequestValidationError
impl Error for RequestValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()