#[non_exhaustive]pub enum MarginEvent {
Changed(MarginChange),
CallUpdated(MarginCall),
CallTriggered(MarginCall),
}Expand description
One event about the margin of an account.
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.
Changed(MarginChange)
The margin a position uses changed.
CallUpdated(MarginCall)
A margin call of the account was changed.
CallTriggered(MarginCall)
The margin level of the account reached the threshold of a margin call.
Trait Implementations§
Source§impl Clone for MarginEvent
impl Clone for MarginEvent
impl Copy for MarginEvent
Source§impl Debug for MarginEvent
impl Debug for MarginEvent
impl Eq for MarginEvent
Source§impl Hash for MarginEvent
impl Hash for MarginEvent
Source§impl PartialEq for MarginEvent
impl PartialEq for MarginEvent
impl StructuralPartialEq for MarginEvent
Auto Trait Implementations§
impl Forget for MarginEvent
impl Freeze for MarginEvent
impl Move for MarginEvent
impl RefUnwindSafe for MarginEvent
impl Send for MarginEvent
impl Sync for MarginEvent
impl Unpin for MarginEvent
impl UnsafeUnpin for MarginEvent
impl UnwindSafe for MarginEvent
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