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": "Red packet total amount",
"examples": [
"100000000"
],
"type": "string"
},
"chain": {
"description": "Blockchain network for the red packet",
"examples": [
"sol"
],
"type": "string"
},
"claimedAt": {
"description": "Claim timestamp",
"examples": [
1717334400000
],
"type": "integer",
"format": "int64"
},
"claimer": {
"description": "Claimer wallet address",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"creator": {
"description": "Creator wallet address",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"mint": {
"description": "Token mint address",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"packetId": {
"description": "Red packet on-chain ID",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"txHash": {
"description": "Transaction hash",
"examples": [
"5UfDuX7hXbL3mFfPdq1pymNHM..."
],
"type": "string"
}
}
}Fields§
§amount: StringRed packet total amount
chain: Option<String>Blockchain network for the red packet
claimed_at: Option<i64>Claim timestamp
claimer: StringClaimer wallet address
creator: Option<String>Creator wallet address
mint: StringToken mint address
packet_id: StringRed packet on-chain ID
tx_hash: Option<String>Transaction 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 (const: unstable) · 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