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