pub struct RedPacketClaimDto {
pub amount: String,
pub chain: Chain,
pub claimed_at: i64,
pub claimer: String,
pub creator: String,
pub mint: String,
pub packet_id: String,
pub tx_hash: String,
}Expand description
RedPacketClaimDto
JSON schema
{
"type": "object",
"required": [
"amount",
"chain",
"claimedAt",
"claimer",
"creator",
"mint",
"packetId",
"txHash"
],
"properties": {
"amount": {
"description": "DTO.RED_PACKET.AMOUNT",
"examples": [
"1000000000"
],
"type": "string"
},
"chain": {
"description": "DTO.RED_PACKET.CHAIN",
"examples": [
"sol"
],
"allOf": [
{
"$ref": "#/components/schemas/Chain"
}
]
},
"claimedAt": {
"description": "DTO.RED_PACKET.CLAIMED_AT",
"examples": [
1717334400
],
"type": "integer",
"format": "int64"
},
"claimer": {
"description": "DTO.RED_PACKET.CLAIMER",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"creator": {
"description": "DTO.RED_PACKET.CREATOR",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"mint": {
"description": "DTO.RED_PACKET.MINT",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"packetId": {
"description": "DTO.RED_PACKET.PACKET_ID",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"txHash": {
"description": "DTO.RED_PACKET.TX_HASH",
"examples": [
"123456"
],
"type": "string"
}
}
}Fields§
§amount: StringDTO.RED_PACKET.AMOUNT
chain: ChainDTO.RED_PACKET.CHAIN
claimed_at: i64DTO.RED_PACKET.CLAIMED_AT
claimer: StringDTO.RED_PACKET.CLAIMER
creator: StringDTO.RED_PACKET.CREATOR
mint: StringDTO.RED_PACKET.MINT
packet_id: StringDTO.RED_PACKET.PACKET_ID
tx_hash: StringDTO.RED_PACKET.TX_HASH
Implementations§
Source§impl RedPacketClaimDto
impl RedPacketClaimDto
pub fn builder() -> RedPacketClaimDto
Trait Implementations§
Source§impl Clone for RedPacketClaimDto
impl Clone for RedPacketClaimDto
Source§fn clone(&self) -> RedPacketClaimDto
fn clone(&self) -> RedPacketClaimDto
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 RedPacketClaimDto
impl Debug for RedPacketClaimDto
Source§impl<'de> Deserialize<'de> for RedPacketClaimDto
impl<'de> Deserialize<'de> for RedPacketClaimDto
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<&RedPacketClaimDto> for RedPacketClaimDto
impl From<&RedPacketClaimDto> for RedPacketClaimDto
Source§fn from(value: &RedPacketClaimDto) -> Self
fn from(value: &RedPacketClaimDto) -> Self
Converts to this type from the input type.
Source§impl From<RedPacketClaimDto> for RedPacketClaimDto
impl From<RedPacketClaimDto> for RedPacketClaimDto
Source§fn from(value: RedPacketClaimDto) -> Self
fn from(value: RedPacketClaimDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedPacketClaimDto
impl Serialize for RedPacketClaimDto
Source§impl TryFrom<RedPacketClaimDto> for RedPacketClaimDto
impl TryFrom<RedPacketClaimDto> for RedPacketClaimDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedPacketClaimDto) -> Result<Self, ConversionError>
fn try_from(value: RedPacketClaimDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RedPacketClaimDto
impl RefUnwindSafe for RedPacketClaimDto
impl Send for RedPacketClaimDto
impl Sync for RedPacketClaimDto
impl Unpin for RedPacketClaimDto
impl UnwindSafe for RedPacketClaimDto
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