pub struct PostSendV1CraftSendRequest {
pub amount: String,
pub invite_signer: String,
pub mint: Option<String>,
pub sender: String,
}Fields§
§amount: String- Amount in atomic value (before decimals)
- E.g. to send 1 USDC is equivalent of
amount='1000000' - Do note that there will be additional SOL amount being used in the transaction for transaction fees and token accounts
- E.g. to send 1 USDC is equivalent of
invite_signer: String- Public key address generated from the hash of the invite code
- Do note that, the invite code requires to be generated client side, refer to docs
- Please handle invite code and secret key with highest security as user funds are involved
mint: Option<String>- Defaults to WSOL mint
- Only pass in this parameter with other mint when required
sender: String- Public key address of the sender
- This address will be funding the amount to be sent and the token accounts involved
Implementations§
Trait Implementations§
Source§impl Clone for PostSendV1CraftSendRequest
impl Clone for PostSendV1CraftSendRequest
Source§fn clone(&self) -> PostSendV1CraftSendRequest
fn clone(&self) -> PostSendV1CraftSendRequest
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 PostSendV1CraftSendRequest
impl Debug for PostSendV1CraftSendRequest
Source§impl<'de> Deserialize<'de> for PostSendV1CraftSendRequest
impl<'de> Deserialize<'de> for PostSendV1CraftSendRequest
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
Auto Trait Implementations§
impl Freeze for PostSendV1CraftSendRequest
impl RefUnwindSafe for PostSendV1CraftSendRequest
impl Send for PostSendV1CraftSendRequest
impl Sync for PostSendV1CraftSendRequest
impl Unpin for PostSendV1CraftSendRequest
impl UnsafeUnpin for PostSendV1CraftSendRequest
impl UnwindSafe for PostSendV1CraftSendRequest
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