pub struct GetMarginTradeRequest {
pub symbol: String,
pub volume: Decimal,
}
Fields§
§symbol: String
Symbol
volume: Decimal
volume
Implementations§
Source§impl GetMarginTradeRequest
impl GetMarginTradeRequest
Sourcepub fn with_symbol(self, value: impl Into<String>) -> Self
pub fn with_symbol(self, value: impl Into<String>) -> Self
Sets the symbol
field of this struct.
Sourcepub fn with_volume(self, value: impl Into<Decimal>) -> Self
pub fn with_volume(self, value: impl Into<Decimal>) -> Self
Sets the volume
field of this struct.
Trait Implementations§
Source§impl Clone for GetMarginTradeRequest
impl Clone for GetMarginTradeRequest
Source§fn clone(&self) -> GetMarginTradeRequest
fn clone(&self) -> GetMarginTradeRequest
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 GetMarginTradeRequest
impl Debug for GetMarginTradeRequest
Source§impl Default for GetMarginTradeRequest
impl Default for GetMarginTradeRequest
Source§fn default() -> GetMarginTradeRequest
fn default() -> GetMarginTradeRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetMarginTradeRequest
impl<'de> Deserialize<'de> for GetMarginTradeRequest
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 GetMarginTradeRequest
impl PartialEq for GetMarginTradeRequest
Source§impl Serialize for GetMarginTradeRequest
impl Serialize for GetMarginTradeRequest
impl StructuralPartialEq for GetMarginTradeRequest
Auto Trait Implementations§
impl Freeze for GetMarginTradeRequest
impl RefUnwindSafe for GetMarginTradeRequest
impl Send for GetMarginTradeRequest
impl Sync for GetMarginTradeRequest
impl Unpin for GetMarginTradeRequest
impl UnwindSafe for GetMarginTradeRequest
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