pub struct RedPacketDto {Show 17 fields
pub chain: Chain,
pub claim_authority: String,
pub claimed_amount: String,
pub claimed_count: i64,
pub created_at: i64,
pub creator: String,
pub expiration: i64,
pub expired: bool,
pub expired_at: i64,
pub id: String,
pub max_claims: i64,
pub memo: String,
pub mint: String,
pub refunded_amount: String,
pub share_id: String,
pub total_amount: String,
pub tx_hash: String,
}Expand description
RedPacketDto
JSON schema
{
"type": "object",
"required": [
"chain",
"claimAuthority",
"claimedAmount",
"claimedCount",
"createdAt",
"creator",
"expiration",
"expired",
"expiredAt",
"id",
"maxClaims",
"memo",
"mint",
"refundedAmount",
"shareId",
"totalAmount",
"txHash"
],
"properties": {
"chain": {
"description": "GLOBAL.CHAIN.DESCRIPTION",
"examples": [
"sol"
],
"allOf": [
{
"$ref": "#/components/schemas/Chain"
}
]
},
"claimAuthority": {
"description": "DTO.RED_PACKET.CLAIM_AUTHORITY",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"claimedAmount": {
"description": "DTO.RED_PACKET.CLAIMED_AMOUNT",
"examples": [
"100000000"
],
"type": "string"
},
"claimedCount": {
"description": "DTO.RED_PACKET.CLAIMED_COUNT",
"examples": [
100
],
"type": "integer",
"format": "int64"
},
"createdAt": {
"description": "DTO.RED_PACKET.CREATED_AT",
"examples": [
1717334400
],
"type": "integer",
"format": "int64"
},
"creator": {
"description": "DTO.RED_PACKET.CREATOR",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"expiration": {
"description": "DTO.RED_PACKET.EXPIRATION",
"examples": [
24
],
"type": "integer",
"format": "int64"
},
"expired": {
"description": "DTO.RED_PACKET.WITHDRAWED",
"examples": [
true
],
"type": "boolean"
},
"expiredAt": {
"description": "DTO.RED_PACKET.EXPIRES_AT",
"examples": [
1717334400
],
"type": "integer",
"format": "int64"
},
"id": {
"description": "DTO.RED_PACKET.ID",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"maxClaims": {
"description": "DTO.RED_PACKET.MAX_CLAIMS",
"examples": [
100
],
"type": "integer",
"format": "int64"
},
"memo": {
"description": "DTO.RED_PACKET.MEMO",
"examples": [
"Happy Red Packet"
],
"type": "string"
},
"mint": {
"description": "DTO.RED_PACKET.MINT",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"refundedAmount": {
"description": "DTO.RED_PACKET.REFUND_AMOUNT",
"examples": [
"123456"
],
"type": "string"
},
"shareId": {
"description": "DTO.RED_PACKET.SHARE_ID",
"examples": [
"123456"
],
"type": "string"
},
"totalAmount": {
"description": "DTO.RED_PACKET.TOTAL_AMOUNT",
"examples": [
"1000000000"
],
"type": "string"
},
"txHash": {
"description": "DTO.RED_PACKET.TX_HASH",
"examples": [
"123456"
],
"type": "string"
}
}
}Fields§
§chain: ChainGLOBAL.CHAIN.DESCRIPTION
DTO.RED_PACKET.CLAIM_AUTHORITY
claimed_amount: StringDTO.RED_PACKET.CLAIMED_AMOUNT
claimed_count: i64DTO.RED_PACKET.CLAIMED_COUNT
created_at: i64DTO.RED_PACKET.CREATED_AT
creator: StringDTO.RED_PACKET.CREATOR
expiration: i64DTO.RED_PACKET.EXPIRATION
expired: boolDTO.RED_PACKET.WITHDRAWED
expired_at: i64DTO.RED_PACKET.EXPIRES_AT
id: StringDTO.RED_PACKET.ID
max_claims: i64DTO.RED_PACKET.MAX_CLAIMS
memo: StringDTO.RED_PACKET.MEMO
mint: StringDTO.RED_PACKET.MINT
refunded_amount: StringDTO.RED_PACKET.REFUND_AMOUNT
DTO.RED_PACKET.SHARE_ID
total_amount: StringDTO.RED_PACKET.TOTAL_AMOUNT
tx_hash: StringDTO.RED_PACKET.TX_HASH
Implementations§
Source§impl RedPacketDto
impl RedPacketDto
pub fn builder() -> RedPacketDto
Trait Implementations§
Source§impl Clone for RedPacketDto
impl Clone for RedPacketDto
Source§fn clone(&self) -> RedPacketDto
fn clone(&self) -> RedPacketDto
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 RedPacketDto
impl Debug for RedPacketDto
Source§impl<'de> Deserialize<'de> for RedPacketDto
impl<'de> Deserialize<'de> for RedPacketDto
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<&RedPacketDto> for RedPacketDto
impl From<&RedPacketDto> for RedPacketDto
Source§fn from(value: &RedPacketDto) -> Self
fn from(value: &RedPacketDto) -> Self
Converts to this type from the input type.
Source§impl From<RedPacketDto> for RedPacketDto
impl From<RedPacketDto> for RedPacketDto
Source§fn from(value: RedPacketDto) -> Self
fn from(value: RedPacketDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedPacketDto
impl Serialize for RedPacketDto
Source§impl TryFrom<RedPacketDto> for RedPacketDto
impl TryFrom<RedPacketDto> for RedPacketDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedPacketDto) -> Result<Self, ConversionError>
fn try_from(value: RedPacketDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RedPacketDto
impl RefUnwindSafe for RedPacketDto
impl Send for RedPacketDto
impl Sync for RedPacketDto
impl Unpin for RedPacketDto
impl UnwindSafe for RedPacketDto
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