pub struct QuoteGetBuilder<'a> { /* private fields */ }Expand description
Additive request builder for QuoteGet.
Implementations§
Source§impl<'a> QuoteGetBuilder<'a>
impl<'a> QuoteGetBuilder<'a>
Sourcepub fn slippage_bps(self, slippage_bps: i64) -> Self
pub fn slippage_bps(self, slippage_bps: i64) -> Self
Set the optional slippageBps operation parameter.
Sourcepub fn swap_mode(self, swap_mode: QuoteGetSwapMode) -> Self
pub fn swap_mode(self, swap_mode: QuoteGetSwapMode) -> Self
Set the optional swapMode operation parameter.
Sourcepub fn exclude_dexes(self, exclude_dexes: Vec<String>) -> Self
pub fn exclude_dexes(self, exclude_dexes: Vec<String>) -> Self
Set the optional excludeDexes operation parameter.
Sourcepub fn restrict_intermediate_tokens(
self,
restrict_intermediate_tokens: bool,
) -> Self
pub fn restrict_intermediate_tokens( self, restrict_intermediate_tokens: bool, ) -> Self
Set the optional restrictIntermediateTokens operation parameter.
Sourcepub fn only_direct_routes(self, only_direct_routes: bool) -> Self
pub fn only_direct_routes(self, only_direct_routes: bool) -> Self
Set the optional onlyDirectRoutes operation parameter.
Sourcepub fn as_legacy_transaction(self, as_legacy_transaction: bool) -> Self
pub fn as_legacy_transaction(self, as_legacy_transaction: bool) -> Self
Set the optional asLegacyTransaction operation parameter.
Sourcepub fn platform_fee_bps(self, platform_fee_bps: i64) -> Self
pub fn platform_fee_bps(self, platform_fee_bps: i64) -> Self
Set the optional platformFeeBps operation parameter.
Sourcepub fn max_accounts(self, max_accounts: u64) -> Self
pub fn max_accounts(self, max_accounts: u64) -> Self
Set the optional maxAccounts operation parameter.
Sourcepub fn instruction_version(
self,
instruction_version: QuoteGetInstructionVersion,
) -> Self
pub fn instruction_version( self, instruction_version: QuoteGetInstructionVersion, ) -> Self
Set the optional instructionVersion operation parameter.
Sourcepub fn dynamic_slippage(self, dynamic_slippage: bool) -> Self
pub fn dynamic_slippage(self, dynamic_slippage: bool) -> Self
Set the optional dynamicSlippage operation parameter.
Sourcepub fn for_jito_bundle(self, for_jito_bundle: bool) -> Self
pub fn for_jito_bundle(self, for_jito_bundle: bool) -> Self
Set the optional forJitoBundle operation parameter.
Sourcepub async fn send(self) -> Result<SwapV1QuoteResponse, ApiOpError<Value>>
pub async fn send(self) -> Result<SwapV1QuoteResponse, ApiOpError<Value>>
Send the request through the existing flat operation method.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QuoteGetBuilder<'a>
impl<'a> !UnwindSafe for QuoteGetBuilder<'a>
impl<'a> Freeze for QuoteGetBuilder<'a>
impl<'a> Send for QuoteGetBuilder<'a>
impl<'a> Sync for QuoteGetBuilder<'a>
impl<'a> Unpin for QuoteGetBuilder<'a>
impl<'a> UnsafeUnpin for QuoteGetBuilder<'a>
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