pub struct PageResponseTokenMintBurn {
pub data: Vec<PageResponseTokenMintBurnDataItem>,
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 mint/burn event",
"type": "object",
"required": [
"amount",
"blockHeight",
"blockTimestamp",
"mintBurnType",
"tokenAddress",
"transactionSignature"
],
"properties": {
"amount": {
"description": "ENTITY.TOKEN_MINT_BURN.AMOUNT",
"examples": [
"1000000"
],
"type": "string"
},
"blockHeight": {
"description": "ENTITY.TOKEN_MINT_BURN.BLOCK_HEIGHT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockTimestamp": {
"description": "ENTITY.TOKEN_MINT_BURN.BLOCK_TIMESTAMP",
"examples": [
1710417600000
],
"type": "integer",
"format": "int64"
},
"mintBurnType": {
"$ref": "#/components/schemas/MintBurnType"
},
"tokenAddress": {
"description": "ENTITY.TOKEN_MINT_BURN.TOKEN_ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.TOKEN_MINT_BURN.TRANSACTION_SIGNATURE",
"examples": [
"3A7B9C1D2E4F6G8"
],
"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<PageResponseTokenMintBurnDataItem>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 PageResponseTokenMintBurn
impl PageResponseTokenMintBurn
pub fn builder() -> PageResponseTokenMintBurn
Trait Implementations§
Source§impl Clone for PageResponseTokenMintBurn
impl Clone for PageResponseTokenMintBurn
Source§fn clone(&self) -> PageResponseTokenMintBurn
fn clone(&self) -> PageResponseTokenMintBurn
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 PageResponseTokenMintBurn
impl Debug for PageResponseTokenMintBurn
Source§impl<'de> Deserialize<'de> for PageResponseTokenMintBurn
impl<'de> Deserialize<'de> for PageResponseTokenMintBurn
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<&PageResponseTokenMintBurn> for PageResponseTokenMintBurn
impl From<&PageResponseTokenMintBurn> for PageResponseTokenMintBurn
Source§fn from(value: &PageResponseTokenMintBurn) -> Self
fn from(value: &PageResponseTokenMintBurn) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTokenMintBurn> for PageResponseTokenMintBurn
impl From<PageResponseTokenMintBurn> for PageResponseTokenMintBurn
Source§fn from(value: PageResponseTokenMintBurn) -> Self
fn from(value: PageResponseTokenMintBurn) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseTokenMintBurn> for PageResponseTokenMintBurn
impl TryFrom<PageResponseTokenMintBurn> for PageResponseTokenMintBurn
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseTokenMintBurn) -> Result<Self, ConversionError>
fn try_from(value: PageResponseTokenMintBurn) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTokenMintBurn
impl RefUnwindSafe for PageResponseTokenMintBurn
impl Send for PageResponseTokenMintBurn
impl Sync for PageResponseTokenMintBurn
impl Unpin for PageResponseTokenMintBurn
impl UnsafeUnpin for PageResponseTokenMintBurn
impl UnwindSafe for PageResponseTokenMintBurn
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