Skip to main content

Order

Struct Order 

#[repr(C)]
pub struct Order { pub remaining_quantity: u64, pub id: u64, pub price: i64, pub timestamp: u64, pub quantity: u64, pub side: Side, pub order_type: OrderType, pub time_in_force: TimeInForce, }

Fields§

§remaining_quantity: u64§id: u64§price: i64§timestamp: u64§quantity: u64§side: Side§order_type: OrderType§time_in_force: TimeInForce

Implementations§

§

impl Order

pub const fn new( id: u64, price: i64, quantity: u64, side: Side, order_type: OrderType, time_in_force: TimeInForce, timestamp: u64, ) -> Self

pub const fn is_filled(&self) -> bool

Trait Implementations§

§

impl Clone for Order

§

fn clone(&self) -> Order

1.0.0 (const: )§

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

§

impl Debug for Order

§

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

§

impl PartialEq for Order

§

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

1.0.0 (const: )§

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

§

impl Eq for Order

§

impl StructuralPartialEq for Order

Auto Trait Implementations§

§

impl Freeze for Order

§

impl RefUnwindSafe for Order

§

impl Send for Order

§

impl Sync for Order

§

impl Unpin for Order

§

impl UnsafeUnpin for Order

§

impl UnwindSafe for Order

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, 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>