pub struct PageResponseBalanceUpdate {
pub data: Vec<PageResponseBalanceUpdateDataItem>,
pub end_cursor: Option<String>,
pub has_next: Option<bool>,
pub has_prev: Option<bool>,
pub start_cursor: Option<String>,
}Expand description
Generic pagination response
JSON schema
{
"description": "Generic pagination response",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"description": "Page data",
"type": "array",
"items": {
"description": "Balance update record",
"type": "object",
"required": [
"accountOwnerAddress",
"balanceChange",
"balanceChangeInNative",
"balanceChangeInUsd",
"blockHash",
"blockHeight",
"blockTimestamp",
"changeType",
"index",
"postBalance",
"postBalanceInNative",
"postBalanceInUsd",
"preBalance",
"preBalanceInNative",
"preBalanceInUsd",
"tokenAccountAddress",
"tokenAddress",
"transactionSignature",
"type"
],
"properties": {
"accountOwnerAddress": {
"description": "ENTITY.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS",
"type": "string"
},
"balanceChange": {
"description": "ENTITY.BALANCE_UPDATE.BALANCE_CHANGE",
"type": "string"
},
"balanceChangeInNative": {
"description": "ENTITY.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE",
"type": "string"
},
"balanceChangeInUsd": {
"description": "ENTITY.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD",
"type": "string"
},
"blockHash": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_HASH",
"type": "string"
},
"blockHeight": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_HEIGHT",
"type": "integer",
"format": "int64"
},
"blockSlot": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_SLOT",
"type": "integer",
"format": "int64"
},
"blockTimestamp": {
"description": "ENTITY.BALANCE_UPDATE.BLOCK_TIMESTAMP",
"type": "integer",
"format": "int64"
},
"changeType": {
"$ref": "#/components/schemas/BalanceChangeType"
},
"index": {
"description": "ENTITY.BALANCE_UPDATE.INDEX",
"type": "integer",
"format": "int64"
},
"postBalance": {
"description": "ENTITY.BALANCE_UPDATE.POST_BALANCE",
"type": "string"
},
"postBalanceInNative": {
"description": "ENTITY.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE",
"type": "string"
},
"postBalanceInUsd": {
"description": "ENTITY.BALANCE_UPDATE.POST_BALANCE_IN_USD",
"type": "string"
},
"preBalance": {
"description": "ENTITY.BALANCE_UPDATE.PRE_BALANCE",
"type": "string"
},
"preBalanceInNative": {
"description": "ENTITY.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE",
"type": "string"
},
"preBalanceInUsd": {
"description": "ENTITY.BALANCE_UPDATE.PRE_BALANCE_IN_USD",
"type": "string"
},
"tokenAccountAddress": {
"description": "ENTITY.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS",
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.BALANCE_UPDATE.TOKEN_ADDRESS",
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.BALANCE_UPDATE.TRANSACTION_SIGNATURE",
"type": "string"
},
"type": {
"$ref": "#/components/schemas/BalanceTokenType"
}
}
}
},
"endCursor": {
"description": "Cursor for the end of current page",
"examples": [
"eyJpZCI6ImVuZCJ9"
],
"type": "string"
},
"hasNext": {
"description": "Whether there is a next page",
"examples": [
false
],
"type": "boolean"
},
"hasPrev": {
"description": "Whether there is a previous page",
"examples": [
false
],
"type": "boolean"
},
"startCursor": {
"description": "Cursor for the start of current page",
"examples": [
"eyJpZCI6InN0YXJ0In0="
],
"type": "string"
}
}
}Fields§
§data: Vec<PageResponseBalanceUpdateDataItem>Page data
end_cursor: Option<String>Cursor for the end of current page
has_next: Option<bool>Whether there is a next page
has_prev: Option<bool>Whether there is a previous page
start_cursor: Option<String>Cursor for the start of current page
Implementations§
Source§impl PageResponseBalanceUpdate
impl PageResponseBalanceUpdate
pub fn builder() -> PageResponseBalanceUpdate
Trait Implementations§
Source§impl Clone for PageResponseBalanceUpdate
impl Clone for PageResponseBalanceUpdate
Source§fn clone(&self) -> PageResponseBalanceUpdate
fn clone(&self) -> PageResponseBalanceUpdate
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 Debug for PageResponseBalanceUpdate
impl Debug for PageResponseBalanceUpdate
Source§impl<'de> Deserialize<'de> for PageResponseBalanceUpdate
impl<'de> Deserialize<'de> for PageResponseBalanceUpdate
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<&PageResponseBalanceUpdate> for PageResponseBalanceUpdate
impl From<&PageResponseBalanceUpdate> for PageResponseBalanceUpdate
Source§fn from(value: &PageResponseBalanceUpdate) -> Self
fn from(value: &PageResponseBalanceUpdate) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseBalanceUpdate> for PageResponseBalanceUpdate
impl From<PageResponseBalanceUpdate> for PageResponseBalanceUpdate
Source§fn from(value: PageResponseBalanceUpdate) -> Self
fn from(value: PageResponseBalanceUpdate) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseBalanceUpdate> for PageResponseBalanceUpdate
impl TryFrom<PageResponseBalanceUpdate> for PageResponseBalanceUpdate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseBalanceUpdate) -> Result<Self, ConversionError>
fn try_from(value: PageResponseBalanceUpdate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseBalanceUpdate
impl RefUnwindSafe for PageResponseBalanceUpdate
impl Send for PageResponseBalanceUpdate
impl Sync for PageResponseBalanceUpdate
impl Unpin for PageResponseBalanceUpdate
impl UnsafeUnpin for PageResponseBalanceUpdate
impl UnwindSafe for PageResponseBalanceUpdate
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