pub struct AberrantFill {Show 13 fields
pub kind: Option<FillKind>,
pub fill_id: FillId,
pub order_id: Option<OrderId>,
pub account_id: Option<AccountId>,
pub market: Option<MarketId>,
pub quantity: Option<Decimal>,
pub price: Option<Decimal>,
pub dir: Option<Dir>,
pub is_maker: Option<bool>,
pub recv_time: Option<DateTime<Utc>>,
pub trade_time: Option<DateTime<Utc>>,
pub trader: Option<UserId>,
pub fee: Option<Fee>,
}Expand description
Fills which we received but couldn’t parse fully, return details best effort
Fields§
§kind: Option<FillKind>§fill_id: FillId§order_id: Option<OrderId>§account_id: Option<AccountId>§market: Option<MarketId>§quantity: Option<Decimal>§price: Option<Decimal>§dir: Option<Dir>§is_maker: Option<bool>§recv_time: Option<DateTime<Utc>>§trade_time: Option<DateTime<Utc>>§trader: Option<UserId>§fee: Option<Fee>Implementations§
Source§impl AberrantFill
impl AberrantFill
Sourcepub fn try_into_fill(self) -> Result<Fill>
pub fn try_into_fill(self) -> Result<Fill>
If sufficient fields on AberrantFill, upgrade it into a Fill
Trait Implementations§
Source§impl Clone for AberrantFill
impl Clone for AberrantFill
Source§fn clone(&self) -> AberrantFill
fn clone(&self) -> AberrantFill
Returns a copy 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 AberrantFill
impl Debug for AberrantFill
Source§impl<'de> Deserialize<'de> for AberrantFill
impl<'de> Deserialize<'de> for AberrantFill
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
Source§impl JsonSchema for AberrantFill
impl JsonSchema for AberrantFill
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for AberrantFill
impl Serialize for AberrantFill
impl Copy for AberrantFill
Auto Trait Implementations§
impl Freeze for AberrantFill
impl RefUnwindSafe for AberrantFill
impl Send for AberrantFill
impl Sync for AberrantFill
impl Unpin for AberrantFill
impl UnwindSafe for AberrantFill
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