pub struct PageResponseWalletTransfer {
pub data: Vec<PageResponseWalletTransferDataItem>,
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": "Wallet transfer",
"type": "object",
"required": [
"amount",
"blockTimestamp",
"fromAddress",
"id",
"toAddress",
"tokenAddress",
"transactionSignature",
"transferType"
],
"properties": {
"amount": {
"description": "ENTITY.WALLET_TRANSFER.AMOUNT",
"examples": [
"1.5"
],
"type": "string"
},
"amountInUsd": {
"description": "ENTITY.WALLET_TRANSFER.AMOUNT_IN_USD",
"examples": [
"225.00"
],
"type": "string"
},
"blockTimestamp": {
"description": "ENTITY.WALLET_TRANSFER.BLOCK_TIMESTAMP",
"examples": [
1717334400000
],
"type": "integer",
"format": "int64"
},
"fromAddress": {
"description": "ENTITY.WALLET_TRANSFER.FROM_ADDRESS",
"examples": [
"54Pz1e35z9uoFdnxtzjp7xZQoFiofqhdayQWBMN7dsuy"
],
"type": "string"
},
"id": {
"description": "ENTITY.WALLET_TRANSFER.ID",
"examples": [
"transfer-123"
],
"type": "string"
},
"toAddress": {
"description": "ENTITY.WALLET_TRANSFER.TO_ADDRESS",
"examples": [
"8X35rQUK2u9hfn8rMPwwr6ZSEUhbmfDPEapp589XyoM1"
],
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.WALLET_TRANSFER.TOKEN_ADDRESS",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.WALLET_TRANSFER.TRANSACTION_SIGNATURE",
"examples": [
"4tEHfECrLJm8N7dNCfQSjhLG7LqdMuZhzBhRy7VRhjCt"
],
"type": "string"
},
"transferType": {
"description": "ENTITY.WALLET_TRANSFER.TRANSFER_TYPE",
"examples": [
"SEND"
],
"type": "string"
}
}
}
},
"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<PageResponseWalletTransferDataItem>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 PageResponseWalletTransfer
impl PageResponseWalletTransfer
pub fn builder() -> PageResponseWalletTransfer
Trait Implementations§
Source§impl Clone for PageResponseWalletTransfer
impl Clone for PageResponseWalletTransfer
Source§fn clone(&self) -> PageResponseWalletTransfer
fn clone(&self) -> PageResponseWalletTransfer
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 PageResponseWalletTransfer
impl Debug for PageResponseWalletTransfer
Source§impl<'de> Deserialize<'de> for PageResponseWalletTransfer
impl<'de> Deserialize<'de> for PageResponseWalletTransfer
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<&PageResponseWalletTransfer> for PageResponseWalletTransfer
impl From<&PageResponseWalletTransfer> for PageResponseWalletTransfer
Source§fn from(value: &PageResponseWalletTransfer) -> Self
fn from(value: &PageResponseWalletTransfer) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseWalletTransfer> for PageResponseWalletTransfer
impl From<PageResponseWalletTransfer> for PageResponseWalletTransfer
Source§fn from(value: PageResponseWalletTransfer) -> Self
fn from(value: PageResponseWalletTransfer) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseWalletTransfer> for PageResponseWalletTransfer
impl TryFrom<PageResponseWalletTransfer> for PageResponseWalletTransfer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseWalletTransfer) -> Result<Self, ConversionError>
fn try_from(value: PageResponseWalletTransfer) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseWalletTransfer
impl RefUnwindSafe for PageResponseWalletTransfer
impl Send for PageResponseWalletTransfer
impl Sync for PageResponseWalletTransfer
impl Unpin for PageResponseWalletTransfer
impl UnsafeUnpin for PageResponseWalletTransfer
impl UnwindSafe for PageResponseWalletTransfer
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