#[non_exhaustive]pub struct OrderError {
pub account: AccountId,
pub code: ErrorCode,
pub order: Option<OrderId>,
pub position: Option<PositionId>,
pub description: Option<String>,
}Expand description
Refusal of a request that trades, as the server reports it in an order error event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account: AccountIdAccount the refused request was made for.
code: ErrorCodeReason of the refusal.
order: Option<OrderId>Order the refused request was about.
position: Option<PositionId>Position the refused request was about.
description: Option<String>Explanation the server gives.
Trait Implementations§
Source§impl Clone for OrderError
impl Clone for OrderError
Source§impl Debug for OrderError
impl Debug for OrderError
impl Eq for OrderError
Source§impl Hash for OrderError
impl Hash for OrderError
Source§impl PartialEq for OrderError
impl PartialEq for OrderError
impl StructuralPartialEq for OrderError
Source§impl TryFrom<ProtoOaOrderErrorEvent> for OrderError
impl TryFrom<ProtoOaOrderErrorEvent> for OrderError
Source§type Error = ValueError
type Error = ValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for OrderError
impl Freeze for OrderError
impl Move for OrderError
impl RefUnwindSafe for OrderError
impl Send for OrderError
impl Sync for OrderError
impl Unpin for OrderError
impl UnsafeUnpin for OrderError
impl UnwindSafe for OrderError
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