pub enum GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails {
Variant0 {
parent_transaction: Option<String>,
quote_id: String,
trade_type: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant0TradeType,
type_: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant0Type,
},
Variant1 {
failure_reason: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1FailureReason,
receive_asset: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1ReceiveAsset,
spend_asset: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1SpendAsset,
trade_type: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1TradeType,
type_: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1Type,
},
Variant2 {
type_: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant2Type,
},
Variant3(String),
}Expand description
GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"quote_id",
"trade_type",
"type"
],
"properties": {
"parent_transaction": {
"type": "string"
},
"quote_id": {
"type": "string"
},
"trade_type": {
"type": "string",
"enum": [
"buy",
"convert",
"sell",
"unspecified"
]
},
"type": {
"type": "string",
"enum": [
"simple_order"
]
}
}
},
{
"type": "object",
"required": [
"failure_reason",
"receive_asset",
"spend_asset",
"trade_type",
"type"
],
"properties": {
"failure_reason": {
"type": "string",
"enum": [
"card_issue",
"insufficient_funds",
"other",
"user_account_issue"
]
},
"receive_asset": {
"type": "object",
"required": [
"asset",
"class"
],
"properties": {
"asset": {
"type": "string"
},
"class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"spend_asset": {
"type": "object",
"required": [
"asset",
"class"
],
"properties": {
"asset": {
"type": "string"
},
"class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"trade_type": {
"type": "string",
"enum": [
"buy",
"convert",
"sell",
"unspecified"
]
},
"type": {
"type": "string",
"enum": [
"simple_order_failed"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"earn_reward"
]
}
}
},
{
"type": "string"
}
]
}Variants§
Variant0
Fields
Variant1
Fields
§
failure_reason: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1FailureReason§
receive_asset: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1ReceiveAsset§
spend_asset: GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetailsVariant1SpendAssetVariant2
Fields
Variant3(String)
Trait Implementations§
Source§impl Clone for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl Clone for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
Source§fn clone(
&self,
) -> GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
fn clone( &self, ) -> GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl<'de> Deserialize<'de> for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
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<&GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails> for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl From<&GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails> for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
Source§fn from(
value: &GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails,
) -> Self
fn from( value: &GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl RefUnwindSafe for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl Send for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl Sync for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl Unpin for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl UnsafeUnpin for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
impl UnwindSafe for GetMasterAccountPortfolioTransactionsResponseResultTransactionsItemDetails
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