pub struct ClosePositionRejection {
pub long_order_reject_transaction: Option<MarketOrderRejectTransaction>,
pub short_order_reject_transaction: Option<MarketOrderRejectTransaction>,
pub related_transaction_ids: Option<Vec<TransactionID>>,
pub last_transaction_id: Option<TransactionID>,
pub error_code: Option<String>,
pub error_message: Option<String>,
}Expand description
Documented rejection fields for close_position.
Fields§
§long_order_reject_transaction: Option<MarketOrderRejectTransaction>The Transaction created that rejects the creation of a MarketOrder to close the long Position.
short_order_reject_transaction: Option<MarketOrderRejectTransaction>The Transaction created that rejects the creation of a MarketOrder to close the short Position.
The IDs of all Transactions that were created while satisfying the request.
last_transaction_id: Option<TransactionID>The ID of the most recent Transaction created for the Account
error_code: Option<String>The code of the error that has occurred. This field may not be returned for some errors.
error_message: Option<String>The human-readable description of the error that has occurred.
Trait Implementations§
Source§impl Clone for ClosePositionRejection
impl Clone for ClosePositionRejection
Source§impl Debug for ClosePositionRejection
impl Debug for ClosePositionRejection
Source§impl Default for ClosePositionRejection
impl Default for ClosePositionRejection
Source§impl<'de> Deserialize<'de> for ClosePositionRejection
impl<'de> Deserialize<'de> for ClosePositionRejection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClosePositionRejection
impl PartialEq for ClosePositionRejection
Source§impl Serialize for ClosePositionRejection
impl Serialize for ClosePositionRejection
impl StructuralPartialEq for ClosePositionRejection
Auto Trait Implementations§
impl Freeze for ClosePositionRejection
impl RefUnwindSafe for ClosePositionRejection
impl Send for ClosePositionRejection
impl Sync for ClosePositionRejection
impl Unpin for ClosePositionRejection
impl UnsafeUnpin for ClosePositionRejection
impl UnwindSafe for ClosePositionRejection
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