pub struct TokenCreation {
pub block_hash: Option<String>,
pub block_height: i64,
pub block_slot: i64,
pub block_timestamp: Option<i64>,
pub token_address: String,
pub transaction_signature: String,
pub type_: String,
}Expand description
Token creation info — mirrors TS TokenCreationDTO
JSON schema
{
"description": "Token creation info — mirrors TS `TokenCreationDTO`",
"type": "object",
"required": [
"blockHeight",
"blockSlot",
"tokenAddress",
"transactionSignature",
"type"
],
"properties": {
"blockHash": {
"description": "ENTITY.TOKEN_CREATION.BLOCK_HASH",
"examples": [
"5J7X9K2M4N6P8Q"
],
"type": "string"
},
"blockHeight": {
"description": "ENTITY.TOKEN_CREATION.BLOCK_HEIGHT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockSlot": {
"description": "ENTITY.TOKEN_CREATION.BLOCK_SLOT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockTimestamp": {
"description": "ENTITY.TOKEN_CREATION.BLOCK_TIMESTAMP",
"examples": [
1754055151000
],
"type": "integer",
"format": "int64"
},
"tokenAddress": {
"description": "ENTITY.TOKEN_CREATION.TOKEN_ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"transactionSignature": {
"description": "ENTITY.TOKEN_CREATION.TRANSACTION_SIGNATURE",
"examples": [
"3A7B9C1D2E4F6G8"
],
"type": "string"
},
"type": {
"description": "ENTITY.TOKEN_CREATION.TYPE",
"examples": [
"create"
],
"type": "string"
}
}
}Fields§
§block_hash: Option<String>ENTITY.TOKEN_CREATION.BLOCK_HASH
block_height: i64ENTITY.TOKEN_CREATION.BLOCK_HEIGHT
block_slot: i64ENTITY.TOKEN_CREATION.BLOCK_SLOT
block_timestamp: Option<i64>ENTITY.TOKEN_CREATION.BLOCK_TIMESTAMP
token_address: StringENTITY.TOKEN_CREATION.TOKEN_ADDRESS
transaction_signature: StringENTITY.TOKEN_CREATION.TRANSACTION_SIGNATURE
type_: StringENTITY.TOKEN_CREATION.TYPE
Implementations§
Source§impl TokenCreation
impl TokenCreation
pub fn builder() -> TokenCreation
Trait Implementations§
Source§impl Clone for TokenCreation
impl Clone for TokenCreation
Source§fn clone(&self) -> TokenCreation
fn clone(&self) -> TokenCreation
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 TokenCreation
impl Debug for TokenCreation
Source§impl<'de> Deserialize<'de> for TokenCreation
impl<'de> Deserialize<'de> for TokenCreation
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<&TokenCreation> for TokenCreation
impl From<&TokenCreation> for TokenCreation
Source§fn from(value: &TokenCreation) -> Self
fn from(value: &TokenCreation) -> Self
Converts to this type from the input type.
Source§impl From<TokenCreation> for TokenCreation
impl From<TokenCreation> for TokenCreation
Source§fn from(value: TokenCreation) -> Self
fn from(value: TokenCreation) -> Self
Converts to this type from the input type.
Source§impl Serialize for TokenCreation
impl Serialize for TokenCreation
Source§impl TryFrom<TokenCreation> for TokenCreation
impl TryFrom<TokenCreation> for TokenCreation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenCreation) -> Result<Self, ConversionError>
fn try_from(value: TokenCreation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TokenCreation
impl RefUnwindSafe for TokenCreation
impl Send for TokenCreation
impl Sync for TokenCreation
impl Unpin for TokenCreation
impl UnsafeUnpin for TokenCreation
impl UnwindSafe for TokenCreation
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