pub struct Allocation {Show 14 fields
pub symbol: String,
pub allocation_id: u64,
pub allocation_type: String,
pub order_id: u64,
pub order_list_id: i64,
pub price: f64,
pub qty: f64,
pub quote_qty: f64,
pub commission: f64,
pub commission_asset: String,
pub time: u64,
pub is_buyer: bool,
pub is_maker: bool,
pub is_allocator: bool,
}Expand description
Allocation entry from SOR order placement.
Fields§
§symbol: StringSymbol.
allocation_id: u64Allocation ID.
allocation_type: StringAllocation type (e.g., “SOR”).
order_id: u64Order ID.
order_list_id: i64Order list ID.
price: f64Price.
qty: f64Quantity.
quote_qty: f64Quote quantity.
commission: f64Commission.
commission_asset: StringCommission asset.
time: u64Time.
is_buyer: boolWhether the allocation is buyer side.
is_maker: boolWhether the allocation is maker side.
is_allocator: boolWhether this allocation is allocator.
Trait Implementations§
Source§impl Clone for Allocation
impl Clone for Allocation
Source§fn clone(&self) -> Allocation
fn clone(&self) -> Allocation
Returns a duplicate of the value. Read more
1.0.0 · 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 Allocation
impl Debug for Allocation
Source§impl<'de> Deserialize<'de> for Allocation
impl<'de> Deserialize<'de> for Allocation
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnwindSafe for Allocation
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