pub struct RedPacketClaim {
pub amount: String,
pub chain: Option<String>,
pub claimed_at: Option<i64>,
pub claimer: String,
pub creator: Option<String>,
pub mint: String,
pub packet_id: String,
pub tx_hash: Option<String>,
}Expand description
Red packet claim record
JSON schema
{
"description": "Red packet claim record",
"type": "object",
"required": [
"amount",
"claimer",
"mint",
"packetId"
],
"properties": {
"amount": {
"description": "DTO.RED_PACKET.AMOUNT",
"examples": [
"100000000"
],
"type": "string"
},
"chain": {
"description": "DTO.RED_PACKET.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"claimedAt": {
"description": "DTO.RED_PACKET.CLAIMED_AT",
"examples": [
1717334400000
],
"type": "integer",
"format": "int64"
},
"claimer": {
"description": "DTO.RED_PACKET.CLAIMER",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"creator": {
"description": "DTO.RED_PACKET.CREATOR",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"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": [
"5UfDuX7hXbL3mFfPdq1pymNHM..."
],
"type": "string"
}
}
}Fields§
§amount: StringDTO.RED_PACKET.AMOUNT
chain: Option<String>DTO.RED_PACKET.CHAIN
claimed_at: Option<i64>DTO.RED_PACKET.CLAIMED_AT
claimer: StringDTO.RED_PACKET.CLAIMER
creator: Option<String>DTO.RED_PACKET.CREATOR
mint: StringDTO.RED_PACKET.MINT
packet_id: StringDTO.RED_PACKET.PACKET_ID
tx_hash: Option<String>DTO.RED_PACKET.TX_HASH
Implementations§
Source§impl RedPacketClaim
impl RedPacketClaim
pub fn builder() -> RedPacketClaim
Trait Implementations§
Source§impl Clone for RedPacketClaim
impl Clone for RedPacketClaim
Source§fn clone(&self) -> RedPacketClaim
fn clone(&self) -> RedPacketClaim
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 RedPacketClaim
impl Debug for RedPacketClaim
Source§impl<'de> Deserialize<'de> for RedPacketClaim
impl<'de> Deserialize<'de> for RedPacketClaim
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<&RedPacketClaim> for RedPacketClaim
impl From<&RedPacketClaim> for RedPacketClaim
Source§fn from(value: &RedPacketClaim) -> Self
fn from(value: &RedPacketClaim) -> Self
Converts to this type from the input type.
Source§impl From<RedPacketClaim> for RedPacketClaim
impl From<RedPacketClaim> for RedPacketClaim
Source§fn from(value: RedPacketClaim) -> Self
fn from(value: RedPacketClaim) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedPacketClaim
impl Serialize for RedPacketClaim
Source§impl TryFrom<RedPacketClaim> for RedPacketClaim
impl TryFrom<RedPacketClaim> for RedPacketClaim
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedPacketClaim) -> Result<Self, ConversionError>
fn try_from(value: RedPacketClaim) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RedPacketClaim
impl RefUnwindSafe for RedPacketClaim
impl Send for RedPacketClaim
impl Sync for RedPacketClaim
impl Unpin for RedPacketClaim
impl UnsafeUnpin for RedPacketClaim
impl UnwindSafe for RedPacketClaim
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