#[non_exhaustive]pub enum UserEvent {
Fills(Vec<Fill>),
Funding(Funding),
Liquidation(Liquidation),
NonUserCancel(Vec<Cancel>),
TwapHistory(Vec<TwapEvent>),
TwapSliceFills(Vec<TwapSliceFill>),
Other {
key: String,
data: String,
},
}Expand description
userEvents, on the channel user: one kind of event a frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fills(Vec<Fill>)
fills: fills of the account’s orders.
Funding(Funding)
funding: a funding payment, on the hour.
Liquidation(Liquidation)
liquidation: a liquidation the account took part in.
NonUserCancel(Vec<Cancel>)
Orders the venue canceled, not the account.
TwapHistory(Vec<TwapEvent>)
twapHistory: TWAPs starting, finishing, being stopped or failing.
TwapSliceFills(Vec<TwapSliceFill>)
twapSliceFills: fills of TWAP slices.
Other
A kind this build does not read: its key, and its value as written.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserEvent
impl<'de> Deserialize<'de> for UserEvent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UserEvent
impl StructuralPartialEq for UserEvent
Auto Trait Implementations§
impl Forget for UserEvent
impl Freeze for UserEvent
impl Move for UserEvent
impl RefUnwindSafe for UserEvent
impl Send for UserEvent
impl Sync for UserEvent
impl Unpin for UserEvent
impl UnsafeUnpin for UserEvent
impl UnwindSafe for UserEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.