#[non_exhaustive]pub struct MarginChange {
pub account: AccountId,
pub position: PositionId,
pub used_margin: Decimal,
}Expand description
Change of the margin a position uses.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account: AccountIdAccount the position belongs to.
position: PositionIdPosition whose margin changed.
used_margin: DecimalMargin the position uses after the change, in the deposit currency.
Trait Implementations§
Source§impl Clone for MarginChange
impl Clone for MarginChange
impl Copy for MarginChange
Source§impl Debug for MarginChange
impl Debug for MarginChange
impl Eq for MarginChange
Source§impl Hash for MarginChange
impl Hash for MarginChange
Source§impl PartialEq for MarginChange
impl PartialEq for MarginChange
impl StructuralPartialEq for MarginChange
Source§impl TryFrom<ProtoOaMarginChangedEvent> for MarginChange
impl TryFrom<ProtoOaMarginChangedEvent> for MarginChange
Source§type Error = ValueError
type Error = ValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for MarginChange
impl Freeze for MarginChange
impl Move for MarginChange
impl RefUnwindSafe for MarginChange
impl Send for MarginChange
impl Sync for MarginChange
impl Unpin for MarginChange
impl UnsafeUnpin for MarginChange
impl UnwindSafe for MarginChange
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