pub struct GetMasterAccountPortfolioTransactionsResponseResult {
pub next_cursor: Option<String>,
pub stats: Option<GetMasterAccountPortfolioTransactionsResponseResultStats>,
pub transactions: Vec<GetMasterAccountPortfolioTransactionsResponseResultTransactionsItem>,
}Expand description
GetMasterAccountPortfolioTransactionsResponseResult
JSON schema
{
"type": "object",
"required": [
"transactions"
],
"properties": {
"next_cursor": {
"type": "string"
},
"stats": {
"type": "object",
"properties": {
"transactions_seen": {
"type": "integer",
"minimum": 0.0
}
}
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"required": [
"details",
"id",
"ref_id",
"time",
"type"
],
"properties": {
"details": {
"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"
}
]
},
"id": {
"type": "string"
},
"receive": {
"type": "object",
"required": [
"amount",
"total"
],
"properties": {
"amount": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"balance": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"fee": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"ledger_id": {
"type": "string"
},
"quoted_amount": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"quoted_fee": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"quoted_total": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"time": {
"type": "string",
"format": "date-time"
},
"total": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
}
}
},
"ref_id": {
"type": "string"
},
"ref_id2": {
"type": "string"
},
"spend": {
"type": "object",
"required": [
"amount",
"total"
],
"properties": {
"amount": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"balance": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"fee": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"ledger_id": {
"type": "string"
},
"quoted_amount": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"quoted_fee": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"quoted_total": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
},
"time": {
"type": "string",
"format": "date-time"
},
"total": {
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": "string",
"enum": [
"currency"
]
}
}
}
}
},
"status": {
"type": "string",
"enum": [
"failed",
"in_progress",
"successful",
"unspecified"
]
},
"time": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string",
"enum": [
"earn_reward",
"simple_order",
"simple_order_failed"
]
}
}
}
}
}
}Fields§
§next_cursor: Option<String>§stats: Option<GetMasterAccountPortfolioTransactionsResponseResultStats>§transactions: Vec<GetMasterAccountPortfolioTransactionsResponseResultTransactionsItem>Trait Implementations§
Source§impl Clone for GetMasterAccountPortfolioTransactionsResponseResult
impl Clone for GetMasterAccountPortfolioTransactionsResponseResult
Source§fn clone(&self) -> GetMasterAccountPortfolioTransactionsResponseResult
fn clone(&self) -> GetMasterAccountPortfolioTransactionsResponseResult
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 GetMasterAccountPortfolioTransactionsResponseResult
impl<'de> Deserialize<'de> for GetMasterAccountPortfolioTransactionsResponseResult
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<&GetMasterAccountPortfolioTransactionsResponseResult> for GetMasterAccountPortfolioTransactionsResponseResult
impl From<&GetMasterAccountPortfolioTransactionsResponseResult> for GetMasterAccountPortfolioTransactionsResponseResult
Source§fn from(value: &GetMasterAccountPortfolioTransactionsResponseResult) -> Self
fn from(value: &GetMasterAccountPortfolioTransactionsResponseResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetMasterAccountPortfolioTransactionsResponseResult
impl RefUnwindSafe for GetMasterAccountPortfolioTransactionsResponseResult
impl Send for GetMasterAccountPortfolioTransactionsResponseResult
impl Sync for GetMasterAccountPortfolioTransactionsResponseResult
impl Unpin for GetMasterAccountPortfolioTransactionsResponseResult
impl UnsafeUnpin for GetMasterAccountPortfolioTransactionsResponseResult
impl UnwindSafe for GetMasterAccountPortfolioTransactionsResponseResult
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