pub struct TokensV2VerificationExpressExecuteBodyBuilder { /* private fields */ }Expand description
Dependency-free builder for [#struct_name].
Implementations§
Source§impl TokensV2VerificationExpressExecuteBodyBuilder
impl TokensV2VerificationExpressExecuteBodyBuilder
Sourcepub fn new(
description: String,
request_id: String,
sender_address: String,
token_id: String,
transaction: String,
twitter_handle: String,
) -> Self
pub fn new( description: String, request_id: String, sender_address: String, token_id: String, transaction: String, twitter_handle: String, ) -> Self
Start a builder with every required wire field.
Sourcepub fn jup_output_amount(self, jup_output_amount: String) -> Self
pub fn jup_output_amount(self, jup_output_amount: String) -> Self
Set the optional jupOutputAmount request field.
Sourcepub fn payment_amount(self, payment_amount: String) -> Self
pub fn payment_amount(self, payment_amount: String) -> Self
Set the optional paymentAmount request field.
Sourcepub fn payment_currency(
self,
payment_currency: TokensV2VerificationPaymentCurrency,
) -> Self
pub fn payment_currency( self, payment_currency: TokensV2VerificationPaymentCurrency, ) -> Self
Set the optional paymentCurrency request field.
Sourcepub fn sender_twitter_handle(self, sender_twitter_handle: String) -> Self
pub fn sender_twitter_handle(self, sender_twitter_handle: String) -> Self
Set the optional senderTwitterHandle request field.
Sourcepub fn token_metadata(
self,
token_metadata: TokensV2VerificationTokenMetadataInput,
) -> Self
pub fn token_metadata( self, token_metadata: TokensV2VerificationTokenMetadataInput, ) -> Self
Set the optional tokenMetadata request field.
Sourcepub fn build(self) -> TokensV2VerificationExpressExecuteBody
pub fn build(self) -> TokensV2VerificationExpressExecuteBody
Finish building the request model.
Trait Implementations§
Source§impl Clone for TokensV2VerificationExpressExecuteBodyBuilder
impl Clone for TokensV2VerificationExpressExecuteBodyBuilder
Source§fn clone(&self) -> TokensV2VerificationExpressExecuteBodyBuilder
fn clone(&self) -> TokensV2VerificationExpressExecuteBodyBuilder
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 moreAuto Trait Implementations§
impl Freeze for TokensV2VerificationExpressExecuteBodyBuilder
impl RefUnwindSafe for TokensV2VerificationExpressExecuteBodyBuilder
impl Send for TokensV2VerificationExpressExecuteBodyBuilder
impl Sync for TokensV2VerificationExpressExecuteBodyBuilder
impl Unpin for TokensV2VerificationExpressExecuteBodyBuilder
impl UnsafeUnpin for TokensV2VerificationExpressExecuteBodyBuilder
impl UnwindSafe for TokensV2VerificationExpressExecuteBodyBuilder
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