pub struct TradeResult {
pub received: f64,
pub remains: f64,
pub order_id: u64,
pub funds: HashMap<String, f64>,
}
Fields§
§received: f64
The amount of currency bought/sold.
remains: f64
The remaining amount of currency to be bought/sold (and the initial order amount).
order_id: u64
Is equal to 0 if the request was fully “matched” by the opposite orders, otherwise the ID of the executed order will be returned.
funds: HashMap<String, f64>
Balance after the request.
Trait Implementations§
Source§impl Clone for TradeResult
impl Clone for TradeResult
Source§fn clone(&self) -> TradeResult
fn clone(&self) -> TradeResult
Returns a copy 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 TradeResult
impl Debug for TradeResult
Source§impl<'de> Deserialize<'de> for TradeResult
impl<'de> Deserialize<'de> for TradeResult
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 TradeResult
impl RefUnwindSafe for TradeResult
impl Send for TradeResult
impl Sync for TradeResult
impl Unpin for TradeResult
impl UnwindSafe for TradeResult
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