pub struct SellRequest {
pub loginid: Option<String>,
pub passthrough: Option<Value>,
pub price: String,
pub req_id: Option<i64>,
pub sell: i64,
}
Expand description
Sell a Contract as identified from a previous portfolio
call.
Fields§
§loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
price: String
Minimum price at which to sell the contract, or 0
for ‘sell at market’.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
sell: i64
Pass contract_id received from the portfolio
call.\n
Trait Implementations§
Source§impl Clone for SellRequest
impl Clone for SellRequest
Source§fn clone(&self) -> SellRequest
fn clone(&self) -> SellRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 SellRequest
impl Debug for SellRequest
Source§impl<'de> Deserialize<'de> for SellRequest
impl<'de> Deserialize<'de> for SellRequest
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
Auto Trait Implementations§
impl Freeze for SellRequest
impl RefUnwindSafe for SellRequest
impl Send for SellRequest
impl Sync for SellRequest
impl Unpin for SellRequest
impl UnwindSafe for SellRequest
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