pub enum QuerySubAccountFuturesPositionRiskResponse {
UsdtFuturesPositionRisk(SubAccountUsdtFuturesPositionRisk),
CoinFuturesPositionRisk(SubAccountCoinFuturesPositionRisk),
}
Expand description
QuerySubAccountFuturesPositionRiskResponse
JSON schema
{
"oneOf": [
{
"$ref": "#/components/schemas/subAccountUSDTFuturesPositionRisk"
},
{
"$ref": "#/components/schemas/subAccountCOINFuturesPositionRisk"
}
]
}
Variants§
UsdtFuturesPositionRisk(SubAccountUsdtFuturesPositionRisk)
CoinFuturesPositionRisk(SubAccountCoinFuturesPositionRisk)
Trait Implementations§
Source§impl Clone for QuerySubAccountFuturesPositionRiskResponse
impl Clone for QuerySubAccountFuturesPositionRiskResponse
Source§fn clone(&self) -> QuerySubAccountFuturesPositionRiskResponse
fn clone(&self) -> QuerySubAccountFuturesPositionRiskResponse
Returns a duplicate 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<'de> Deserialize<'de> for QuerySubAccountFuturesPositionRiskResponse
impl<'de> Deserialize<'de> for QuerySubAccountFuturesPositionRiskResponse
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 From<&QuerySubAccountFuturesPositionRiskResponse> for QuerySubAccountFuturesPositionRiskResponse
impl From<&QuerySubAccountFuturesPositionRiskResponse> for QuerySubAccountFuturesPositionRiskResponse
Source§fn from(value: &QuerySubAccountFuturesPositionRiskResponse) -> Self
fn from(value: &QuerySubAccountFuturesPositionRiskResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubAccountCoinFuturesPositionRisk> for QuerySubAccountFuturesPositionRiskResponse
impl From<SubAccountCoinFuturesPositionRisk> for QuerySubAccountFuturesPositionRiskResponse
Source§fn from(value: SubAccountCoinFuturesPositionRisk) -> Self
fn from(value: SubAccountCoinFuturesPositionRisk) -> Self
Converts to this type from the input type.
Source§impl From<SubAccountUsdtFuturesPositionRisk> for QuerySubAccountFuturesPositionRiskResponse
impl From<SubAccountUsdtFuturesPositionRisk> for QuerySubAccountFuturesPositionRiskResponse
Source§fn from(value: SubAccountUsdtFuturesPositionRisk) -> Self
fn from(value: SubAccountUsdtFuturesPositionRisk) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QuerySubAccountFuturesPositionRiskResponse
impl RefUnwindSafe for QuerySubAccountFuturesPositionRiskResponse
impl Send for QuerySubAccountFuturesPositionRiskResponse
impl Sync for QuerySubAccountFuturesPositionRiskResponse
impl Unpin for QuerySubAccountFuturesPositionRiskResponse
impl UnwindSafe for QuerySubAccountFuturesPositionRiskResponse
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