Struct PendingIntent
pub struct PendingIntent {Show 14 fields
pub client_intent_id: ClientIntentId,
pub action: IntentAction,
pub target_order_id: Option<OrderId>,
pub venue_id: VenueId,
pub instrument_id: InstrumentId,
pub side: Side,
pub order_type: OrderType,
pub price: Option<Price>,
pub qty: Qty,
pub reduce_only: bool,
pub time_in_force: Option<TimeInForce>,
pub correlation_id: Option<Uuid>,
pub strategy_id: Option<String>,
pub commanded: bool,
}Expand description
Cached intent data for constructing an Order when ExecutionAck arrives.
Fields§
§client_intent_id: ClientIntentId§action: IntentAction§target_order_id: Option<OrderId>Target order for Amend/Cancel actions. None for Place/CancelAll.
venue_id: VenueId§instrument_id: InstrumentId§side: Side§order_type: OrderType§price: Option<Price>§qty: Qty§reduce_only: bool§time_in_force: Option<TimeInForce>§correlation_id: Option<Uuid>Correlation ID linking intent → risk → exec chain.
strategy_id: Option<String>Originating strategy id, propagated from the EngineEvent envelope.
commanded: boolSet by the reducer when an ExecutionCommand has been issued for this
intent. Prevents process_approved_intents from generating duplicate
commands before the ExecutionAck arrives and removes the intent.
Implementations§
§impl PendingIntent
impl PendingIntent
pub const NO_QTY: Qty = Decimal::NEGATIVE_ONE
pub const NO_QTY: Qty = Decimal::NEGATIVE_ONE
Sentinel value for qty indicating no replacement quantity was supplied
(used for Amend intents that only change price).
This must stay distinct from any semantically meaningful amend size,
including an explicit Some(0) which some adapters treat as a
terminalizing resize.
pub fn effective_qty(&self) -> Option<Qty>
pub fn effective_qty(&self) -> Option<Qty>
Returns the effective qty, or None if the sentinel indicates no
replacement quantity was supplied (Amend-only).
pub fn to_order_intent(&self) -> OrderIntent
pub fn to_order_intent(&self) -> OrderIntent
Convert back to an [OrderIntent] for risk re-validation.
Tags are not preserved in PendingIntent, so the returned intent has an empty tag map.
Trait Implementations§
§impl Clone for PendingIntent
impl Clone for PendingIntent
§fn clone(&self) -> PendingIntent
fn clone(&self) -> PendingIntent
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PendingIntent
impl Debug for PendingIntent
§impl<'de> Deserialize<'de> for PendingIntent
impl<'de> Deserialize<'de> for PendingIntent
§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>,
§impl PartialEq for PendingIntent
impl PartialEq for PendingIntent
§impl Serialize for PendingIntent
impl Serialize for PendingIntent
impl Eq for PendingIntent
impl StructuralPartialEq for PendingIntent
Auto Trait Implementations§
impl Freeze for PendingIntent
impl RefUnwindSafe for PendingIntent
impl Send for PendingIntent
impl Sync for PendingIntent
impl Unpin for PendingIntent
impl UnsafeUnpin for PendingIntent
impl UnwindSafe for PendingIntent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)