pub struct TradeParams {
pub symbol: String,
pub id: Option<String>,
}Expand description
Request parameters for the [trade] operation.
This struct holds all of the inputs you can pass when calling
trade.
Fields§
§symbol: StringSymbol to query
This field is **required.
id: Option<String>Unique WebSocket request ID.
This field is **optional.
Implementations§
Source§impl TradeParams
impl TradeParams
Sourcepub fn builder(symbol: String) -> TradeParamsBuilder
pub fn builder(symbol: String) -> TradeParamsBuilder
Create a builder for [trade].
Required parameters:
symbol— Symbol to query
Trait Implementations§
Source§impl Clone for TradeParams
impl Clone for TradeParams
Source§fn clone(&self) -> TradeParams
fn clone(&self) -> TradeParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TradeParams
impl RefUnwindSafe for TradeParams
impl Send for TradeParams
impl Sync for TradeParams
impl Unpin for TradeParams
impl UnsafeUnpin for TradeParams
impl UnwindSafe for TradeParams
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