pub struct PageResponseTokenTransfer {
pub data: Vec<PageResponseTokenTransferDataItem>,
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": "Token transfer",
"type": "object",
"required": [
"amount",
"blockTimestamp",
"fromAddress",
"id",
"status",
"toAddress",
"tokenAddress",
"transactionSignature",
"type"
],
"properties": {
"amount": {
"description": "ENTITY.TOKEN_TRANSFER.AMOUNT",
"examples": [
"1738227.69"
],
"type": "string"
},
"amountInUsd": {
"description": "ENTITY.TOKEN_TRANSFER.AMOUNT_IN_USD",
"examples": [
"4.07"
],
"type": "string"
},
"blockTimestamp": {
"description": "ENTITY.TOKEN_TRANSFER.BLOCK_TIMESTAMP",
"examples": [
1710417600000
],
"type": "integer",
"format": "int64"
},
"fromAddress": {
"description": "ENTITY.TOKEN_TRANSFER.FROM_ADDRESS",
"examples": [
"3xad3gVnkBLA48PwPApHTu7zSWBV3x6dUfNnBSmMNvn3"
],
"type": "string"
},
"id": {
"description": "ENTITY.TOKEN_TRANSFER.ID",
"examples": [
"transfer-1"
],
"type": "string"
},
"status": {
"description": "Transfer status: unknown / succeeded / failed",
"examples": [
"succeeded"
],
"type": "string"
},
"toAddress": {
"description": "ENTITY.TOKEN_TRANSFER.TO_ADDRESS",
"examples": [
"FgkE7Kwvt4DAU2MbaZmf8ZwKFUUDXR5ownmuYKsUqkxs"
],
"type": "string"
},
"tokenAddress": {
"description": "ENTITY.TOKEN_TRANSFER.TOKEN_ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.TOKEN_TRANSFER.TRANSACTION_SIGNATURE",
"examples": [
"3hmmomhUcmLMw2ZCqKg5MBfK8b7RBNrBpqvE2Wv7u5V6PCMLh4s7dVfA83NbzNFAgTzVvZuMURoKEviwR92otRp"
],
"type": "string"
},
"type": {
"description": "Transfer type: unknown / in / out",
"examples": [
"in"
],
"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<PageResponseTokenTransferDataItem>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 PageResponseTokenTransfer
impl PageResponseTokenTransfer
pub fn builder() -> PageResponseTokenTransfer
Trait Implementations§
Source§impl Clone for PageResponseTokenTransfer
impl Clone for PageResponseTokenTransfer
Source§fn clone(&self) -> PageResponseTokenTransfer
fn clone(&self) -> PageResponseTokenTransfer
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 PageResponseTokenTransfer
impl Debug for PageResponseTokenTransfer
Source§impl<'de> Deserialize<'de> for PageResponseTokenTransfer
impl<'de> Deserialize<'de> for PageResponseTokenTransfer
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<&PageResponseTokenTransfer> for PageResponseTokenTransfer
impl From<&PageResponseTokenTransfer> for PageResponseTokenTransfer
Source§fn from(value: &PageResponseTokenTransfer) -> Self
fn from(value: &PageResponseTokenTransfer) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTokenTransfer> for PageResponseTokenTransfer
impl From<PageResponseTokenTransfer> for PageResponseTokenTransfer
Source§fn from(value: PageResponseTokenTransfer) -> Self
fn from(value: PageResponseTokenTransfer) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseTokenTransfer> for PageResponseTokenTransfer
impl TryFrom<PageResponseTokenTransfer> for PageResponseTokenTransfer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseTokenTransfer) -> Result<Self, ConversionError>
fn try_from(value: PageResponseTokenTransfer) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTokenTransfer
impl RefUnwindSafe for PageResponseTokenTransfer
impl Send for PageResponseTokenTransfer
impl Sync for PageResponseTokenTransfer
impl Unpin for PageResponseTokenTransfer
impl UnsafeUnpin for PageResponseTokenTransfer
impl UnwindSafe for PageResponseTokenTransfer
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