pub struct CreateRedPacketRequest {
pub claim_authority: Option<String>,
pub creator: String,
pub expiration: Option<i64>,
pub fixed_amount: Option<String>,
pub max_claims: i32,
pub memo: Option<String>,
pub mint: String,
pub password: Option<String>,
pub total_amount: Option<String>,
}Expand description
DTO.RED_PACKET.CREATOR
JSON schema
{
"description": "DTO.RED_PACKET.CREATOR",
"type": "object",
"required": [
"creator",
"maxClaims",
"mint"
],
"properties": {
"claimAuthority": {
"description": "DTO.RED_PACKET.CLAIM_AUTHORITY",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"creator": {
"description": "DTO.RED_PACKET.CREATOR",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"expiration": {
"description": "DTO.RED_PACKET.EXPIRATION",
"examples": [
24
],
"type": "integer",
"format": "int64"
},
"fixedAmount": {
"description": "DTO.RED_PACKET.FIXED_AMOUNT",
"examples": [
"1000000000"
],
"type": "string"
},
"maxClaims": {
"description": "DTO.RED_PACKET.MAX_CLAIMS",
"examples": [
10
],
"type": "integer",
"format": "int32"
},
"memo": {
"description": "DTO.RED_PACKET.MEMO",
"examples": [
"Happy Red Packet"
],
"type": "string"
},
"mint": {
"description": "DTO.RED_PACKET.MINT",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"password": {
"description": "DTO.RED_PACKET.PASSWORD",
"examples": [
"123456"
],
"type": "string"
},
"totalAmount": {
"description": "DTO.RED_PACKET.TOTAL_AMOUNT",
"examples": [
"1000000000"
],
"type": "string"
}
}
}Fields§
DTO.RED_PACKET.CLAIM_AUTHORITY
creator: StringDTO.RED_PACKET.CREATOR
expiration: Option<i64>DTO.RED_PACKET.EXPIRATION
fixed_amount: Option<String>DTO.RED_PACKET.FIXED_AMOUNT
max_claims: i32DTO.RED_PACKET.MAX_CLAIMS
memo: Option<String>DTO.RED_PACKET.MEMO
mint: StringDTO.RED_PACKET.MINT
password: Option<String>DTO.RED_PACKET.PASSWORD
total_amount: Option<String>DTO.RED_PACKET.TOTAL_AMOUNT
Implementations§
Source§impl CreateRedPacketRequest
impl CreateRedPacketRequest
pub fn builder() -> CreateRedPacketRequest
Trait Implementations§
Source§impl Clone for CreateRedPacketRequest
impl Clone for CreateRedPacketRequest
Source§fn clone(&self) -> CreateRedPacketRequest
fn clone(&self) -> CreateRedPacketRequest
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 CreateRedPacketRequest
impl Debug for CreateRedPacketRequest
Source§impl<'de> Deserialize<'de> for CreateRedPacketRequest
impl<'de> Deserialize<'de> for CreateRedPacketRequest
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<&CreateRedPacketRequest> for CreateRedPacketRequest
impl From<&CreateRedPacketRequest> for CreateRedPacketRequest
Source§fn from(value: &CreateRedPacketRequest) -> Self
fn from(value: &CreateRedPacketRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateRedPacketRequest> for CreateRedPacketRequest
impl From<CreateRedPacketRequest> for CreateRedPacketRequest
Source§fn from(value: CreateRedPacketRequest) -> Self
fn from(value: CreateRedPacketRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateRedPacketRequest
impl Serialize for CreateRedPacketRequest
Source§impl TryFrom<CreateRedPacketRequest> for CreateRedPacketRequest
impl TryFrom<CreateRedPacketRequest> for CreateRedPacketRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateRedPacketRequest) -> Result<Self, ConversionError>
fn try_from(value: CreateRedPacketRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateRedPacketRequest
impl RefUnwindSafe for CreateRedPacketRequest
impl Send for CreateRedPacketRequest
impl Sync for CreateRedPacketRequest
impl Unpin for CreateRedPacketRequest
impl UnsafeUnpin for CreateRedPacketRequest
impl UnwindSafe for CreateRedPacketRequest
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