Skip to main content

PendingIntent

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<Decimal>, pub qty: Decimal, pub reduce_only: bool, pub time_in_force: Option<TimeInForce>, pub correlation_id: Option<Uuid>, pub strategy_id: Option<String>, pub commanded: bool,
}

Fields§

§client_intent_id: ClientIntentId§action: IntentAction§target_order_id: Option<OrderId>§venue_id: VenueId§instrument_id: InstrumentId§side: Side§order_type: OrderType§price: Option<Decimal>§qty: Decimal§reduce_only: bool§time_in_force: Option<TimeInForce>§correlation_id: Option<Uuid>§strategy_id: Option<String>§commanded: bool

Implementations§

§

impl PendingIntent

pub const NO_QTY: Decimal = Decimal::NEGATIVE_ONE

pub fn effective_qty(&self) -> Option<Decimal>

pub fn to_order_intent(&self) -> OrderIntent

Trait Implementations§

§

impl Clone for PendingIntent

§

fn clone(&self) -> PendingIntent

1.0.0 (const: )§

fn clone_from(&mut self, source: &Self)

§

impl Debug for PendingIntent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

§

impl<'de> Deserialize<'de> for PendingIntent

§

fn deserialize<__D>( __deserializer: __D, ) -> Result<PendingIntent, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

§

impl PartialEq for PendingIntent

§

fn eq(&self, other: &PendingIntent) -> bool

1.0.0 (const: )§

fn ne(&self, other: &Rhs) -> bool

§

impl Serialize for PendingIntent

§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

§

impl Eq for PendingIntent

§

impl StructuralPartialEq for PendingIntent

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
§

impl<T> From<T> for T

§

fn from(t: T) -> T

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

§

fn in_current_span(self) -> Instrumented<Self>

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

§

fn to_owned(&self) -> T

§

fn clone_into(&self, target: &mut T)

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

§

fn with_current_subscriber(self) -> WithDispatch<Self>

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,