pub struct BuyRequest {
pub buy: String,
pub loginid: Option<String>,
pub parameters: Option<Parameters>,
pub passthrough: Option<Value>,
pub price: String,
pub req_id: Option<i64>,
pub subscribe: Option<i64>,
}
Expand description
Buy a Contract
Fields§
§buy: String
Either the ID received from a Price Proposal (proposal
call), or 1
if contract buy parameters are passed in the parameters
field.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
parameters: Option<Parameters>
[Optional] Used to pass the parameters for contract buy.\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
Maximum price at which to purchase the contract.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
subscribe: Option<i64>
[Optional] 1
to stream.\n
Trait Implementations§
Source§impl Clone for BuyRequest
impl Clone for BuyRequest
Source§fn clone(&self) -> BuyRequest
fn clone(&self) -> BuyRequest
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 BuyRequest
impl Debug for BuyRequest
Source§impl<'de> Deserialize<'de> for BuyRequest
impl<'de> Deserialize<'de> for BuyRequest
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 BuyRequest
impl RefUnwindSafe for BuyRequest
impl Send for BuyRequest
impl Sync for BuyRequest
impl Unpin for BuyRequest
impl UnwindSafe for BuyRequest
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