pub struct TradeSyncResult {
pub success: bool,
pub pnl: Option<f64>,
}Expand description
Common result for sync operations (trait-level abstraction)
Fields§
§success: boolWhether the sync succeeded.
pnl: Option<f64>Upstream-calculated PnL, if returned.
Trait Implementations§
Source§impl Clone for TradeSyncResult
impl Clone for TradeSyncResult
Source§fn clone(&self) -> TradeSyncResult
fn clone(&self) -> TradeSyncResult
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 TradeSyncResult
impl RefUnwindSafe for TradeSyncResult
impl Send for TradeSyncResult
impl Sync for TradeSyncResult
impl Unpin for TradeSyncResult
impl UnsafeUnpin for TradeSyncResult
impl UnwindSafe for TradeSyncResult
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