pub struct SyncRequest {
pub trades: Vec<UpstreamTrade>,
pub ts: i64,
pub current_price: Option<String>,
pub stop_bot: bool,
pub stop_reason: String,
pub metadata: Option<Value>,
}Expand description
Request payload for sync API
Fields§
§trades: Vec<UpstreamTrade>Trades to sync.
ts: i64Request timestamp in milliseconds.
current_price: Option<String>Current price, if known.
stop_bot: boolWhether this request marks bot shutdown.
stop_reason: StringShutdown reason when stop_bot is true.
metadata: Option<Value>Optional metrics or strategy metadata.
Trait Implementations§
Source§impl Clone for SyncRequest
impl Clone for SyncRequest
Source§fn clone(&self) -> SyncRequest
fn clone(&self) -> SyncRequest
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 moreSource§impl Debug for SyncRequest
impl Debug for SyncRequest
Auto Trait Implementations§
impl Freeze for SyncRequest
impl RefUnwindSafe for SyncRequest
impl Send for SyncRequest
impl Sync for SyncRequest
impl Unpin for SyncRequest
impl UnsafeUnpin for SyncRequest
impl UnwindSafe for SyncRequest
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