pub struct GetMasterAccountPortfolioTransactionsResponse {
pub error: Vec<Value>,
pub errors: Vec<Value>,
pub result: Option<GetMasterAccountPortfolioTransactionsResponseResult>,
}Expand description
GetMasterAccountPortfolioTransactionsResponse
JSON schema
{
"type": "object",
"properties": {
"error": {
"type": "array",
"items": {}
},
"errors": {
"type": "array",
"items": {}
},
"result": {
"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§
§error: Vec<Value>§errors: Vec<Value>§result: Option<GetMasterAccountPortfolioTransactionsResponseResult>Trait Implementations§
Source§impl Clone for GetMasterAccountPortfolioTransactionsResponse
impl Clone for GetMasterAccountPortfolioTransactionsResponse
Source§fn clone(&self) -> GetMasterAccountPortfolioTransactionsResponse
fn clone(&self) -> GetMasterAccountPortfolioTransactionsResponse
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 GetMasterAccountPortfolioTransactionsResponse
impl<'de> Deserialize<'de> for GetMasterAccountPortfolioTransactionsResponse
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<&GetMasterAccountPortfolioTransactionsResponse> for GetMasterAccountPortfolioTransactionsResponse
impl From<&GetMasterAccountPortfolioTransactionsResponse> for GetMasterAccountPortfolioTransactionsResponse
Source§fn from(value: &GetMasterAccountPortfolioTransactionsResponse) -> Self
fn from(value: &GetMasterAccountPortfolioTransactionsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetMasterAccountPortfolioTransactionsResponse
impl RefUnwindSafe for GetMasterAccountPortfolioTransactionsResponse
impl Send for GetMasterAccountPortfolioTransactionsResponse
impl Sync for GetMasterAccountPortfolioTransactionsResponse
impl Unpin for GetMasterAccountPortfolioTransactionsResponse
impl UnsafeUnpin for GetMasterAccountPortfolioTransactionsResponse
impl UnwindSafe for GetMasterAccountPortfolioTransactionsResponse
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