pub struct ClaimRedPacketInput {
pub chain: ClaimRedPacketInputChain,
pub claimer: String,
pub packet_id: Option<String>,
pub password: Option<String>,
pub share_id: Option<String>,
}Expand description
ClaimRedPacketInput
JSON schema
{
"type": "object",
"required": [
"chain",
"claimer"
],
"properties": {
"chain": {
"description": "DTO.RED_PACKET.CHAIN",
"examples": [
"sol"
],
"type": "string",
"enum": [
"sol",
"bsc",
"eth"
]
},
"claimer": {
"description": "DTO.RED_PACKET.CLAIMER",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"packetId": {
"description": "DTO.RED_PACKET.PACKET_ID",
"examples": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"type": "string"
},
"password": {
"description": "DTO.RED_PACKET.PASSWORD",
"examples": [
"123456"
],
"type": "string"
},
"shareId": {
"description": "DTO.RED_PACKET.SHARE_ID",
"examples": [
"123456"
],
"type": "string"
}
}
}Fields§
§chain: ClaimRedPacketInputChainDTO.RED_PACKET.CHAIN
claimer: StringDTO.RED_PACKET.CLAIMER
packet_id: Option<String>DTO.RED_PACKET.PACKET_ID
password: Option<String>DTO.RED_PACKET.PASSWORD
DTO.RED_PACKET.SHARE_ID
Implementations§
Source§impl ClaimRedPacketInput
impl ClaimRedPacketInput
pub fn builder() -> ClaimRedPacketInput
Trait Implementations§
Source§impl Clone for ClaimRedPacketInput
impl Clone for ClaimRedPacketInput
Source§fn clone(&self) -> ClaimRedPacketInput
fn clone(&self) -> ClaimRedPacketInput
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 ClaimRedPacketInput
impl Debug for ClaimRedPacketInput
Source§impl<'de> Deserialize<'de> for ClaimRedPacketInput
impl<'de> Deserialize<'de> for ClaimRedPacketInput
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<&ClaimRedPacketInput> for ClaimRedPacketInput
impl From<&ClaimRedPacketInput> for ClaimRedPacketInput
Source§fn from(value: &ClaimRedPacketInput) -> Self
fn from(value: &ClaimRedPacketInput) -> Self
Converts to this type from the input type.
Source§impl From<ClaimRedPacketInput> for ClaimRedPacketInput
impl From<ClaimRedPacketInput> for ClaimRedPacketInput
Source§fn from(value: ClaimRedPacketInput) -> Self
fn from(value: ClaimRedPacketInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for ClaimRedPacketInput
impl Serialize for ClaimRedPacketInput
Source§impl TryFrom<ClaimRedPacketInput> for ClaimRedPacketInput
impl TryFrom<ClaimRedPacketInput> for ClaimRedPacketInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ClaimRedPacketInput) -> Result<Self, ConversionError>
fn try_from(value: ClaimRedPacketInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ClaimRedPacketInput
impl RefUnwindSafe for ClaimRedPacketInput
impl Send for ClaimRedPacketInput
impl Sync for ClaimRedPacketInput
impl Unpin for ClaimRedPacketInput
impl UnwindSafe for ClaimRedPacketInput
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