pub struct TokenMintBurn {
pub amount: String,
pub block_height: i64,
pub block_timestamp: i64,
pub mint_burn_type: MintBurnType,
pub token_address: String,
pub transaction_signature: String,
}Expand description
Token mint/burn event
JSON schema
{
"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"
}
}
}Fields§
§amount: StringENTITY.TOKEN_MINT_BURN.AMOUNT
block_height: i64ENTITY.TOKEN_MINT_BURN.BLOCK_HEIGHT
block_timestamp: i64ENTITY.TOKEN_MINT_BURN.BLOCK_TIMESTAMP
mint_burn_type: MintBurnType§token_address: StringENTITY.TOKEN_MINT_BURN.TOKEN_ADDRESS
transaction_signature: StringENTITY.TOKEN_MINT_BURN.TRANSACTION_SIGNATURE
Implementations§
Source§impl TokenMintBurn
impl TokenMintBurn
pub fn builder() -> TokenMintBurn
Trait Implementations§
Source§impl Clone for TokenMintBurn
impl Clone for TokenMintBurn
Source§fn clone(&self) -> TokenMintBurn
fn clone(&self) -> TokenMintBurn
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 TokenMintBurn
impl Debug for TokenMintBurn
Source§impl<'de> Deserialize<'de> for TokenMintBurn
impl<'de> Deserialize<'de> for TokenMintBurn
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<&TokenMintBurn> for TokenMintBurn
impl From<&TokenMintBurn> for TokenMintBurn
Source§fn from(value: &TokenMintBurn) -> Self
fn from(value: &TokenMintBurn) -> Self
Converts to this type from the input type.
Source§impl From<TokenMintBurn> for TokenMintBurn
impl From<TokenMintBurn> for TokenMintBurn
Source§fn from(value: TokenMintBurn) -> Self
fn from(value: TokenMintBurn) -> Self
Converts to this type from the input type.
Source§impl Serialize for TokenMintBurn
impl Serialize for TokenMintBurn
Source§impl TryFrom<TokenMintBurn> for TokenMintBurn
impl TryFrom<TokenMintBurn> for TokenMintBurn
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenMintBurn) -> Result<Self, ConversionError>
fn try_from(value: TokenMintBurn) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TokenMintBurn
impl RefUnwindSafe for TokenMintBurn
impl Send for TokenMintBurn
impl Sync for TokenMintBurn
impl Unpin for TokenMintBurn
impl UnsafeUnpin for TokenMintBurn
impl UnwindSafe for TokenMintBurn
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