pub struct SyncResult {
pub success: bool,
pub pnl: Option<f64>,
pub last_synced_trade_id: Option<String>,
pub trades_synced: usize,
}Expand description
Response from sync API
Fields§
§success: boolWhether the sync succeeded.
pnl: Option<f64>Upstream-calculated PnL, if returned.
last_synced_trade_id: Option<String>Last synced trade ID.
trades_synced: usizeNumber of trades synced.
Trait Implementations§
Source§impl Clone for SyncResult
impl Clone for SyncResult
Source§fn clone(&self) -> SyncResult
fn clone(&self) -> SyncResult
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 SyncResult
impl RefUnwindSafe for SyncResult
impl Send for SyncResult
impl Sync for SyncResult
impl Unpin for SyncResult
impl UnsafeUnpin for SyncResult
impl UnwindSafe for SyncResult
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