pub struct MultiAssetsModeData {
pub is_enabled: bool,
pub fee_deduction: Option<bool>,
pub position_mode_dual: Option<bool>,
}Expand description
Multi-assets margin mode change within an AccountConfigUpdateEvent.
Fields§
§is_enabled: bool§fee_deduction: Option<bool>Specified token fee deduction enabled.
position_mode_dual: Option<bool>Position mode: true = dual-side (hedge), false = single-side (one-way).
Trait Implementations§
Source§impl Debug for MultiAssetsModeData
impl Debug for MultiAssetsModeData
Source§impl<'de> Deserialize<'de> for MultiAssetsModeData
impl<'de> Deserialize<'de> for MultiAssetsModeData
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 MultiAssetsModeData
impl RefUnwindSafe for MultiAssetsModeData
impl Send for MultiAssetsModeData
impl Sync for MultiAssetsModeData
impl Unpin for MultiAssetsModeData
impl UnsafeUnpin for MultiAssetsModeData
impl UnwindSafe for MultiAssetsModeData
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more