pub struct GetOrderBuilder<'a> { /* private fields */ }Expand description
Additive request builder for GetOrder.
Implementations§
Source§impl<'a> GetOrderBuilder<'a>
impl<'a> GetOrderBuilder<'a>
Sourcepub fn taker(self, taker: impl Into<String>) -> Self
pub fn taker(self, taker: impl Into<String>) -> Self
Set the optional taker operation parameter.
Sourcepub fn receiver(self, receiver: impl Into<String>) -> Self
pub fn receiver(self, receiver: impl Into<String>) -> Self
Set the optional receiver operation parameter.
Sourcepub fn swap_mode(self, swap_mode: GetOrderSwapMode) -> Self
pub fn swap_mode(self, swap_mode: GetOrderSwapMode) -> Self
Set the optional swapMode operation parameter.
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 referral_account(self, referral_account: impl Into<String>) -> Self
pub fn referral_account(self, referral_account: impl Into<String>) -> Self
Set the optional referralAccount operation parameter.
Sourcepub fn referral_fee(self, referral_fee: f64) -> Self
pub fn referral_fee(self, referral_fee: f64) -> Self
Set the optional referralFee operation parameter.
Sourcepub fn payer(self, payer: impl Into<String>) -> Self
pub fn payer(self, payer: impl Into<String>) -> Self
Set the optional payer operation parameter.
Sourcepub fn priority_fee_lamports(self, priority_fee_lamports: f64) -> Self
pub fn priority_fee_lamports(self, priority_fee_lamports: f64) -> Self
Set the optional priorityFeeLamports operation parameter.
Sourcepub fn jito_tip_lamports(self, jito_tip_lamports: f64) -> Self
pub fn jito_tip_lamports(self, jito_tip_lamports: f64) -> Self
Set the optional jitoTipLamports operation parameter.
Sourcepub fn broadcast_fee_type(
self,
broadcast_fee_type: GetOrderBroadcastFeeType,
) -> Self
pub fn broadcast_fee_type( self, broadcast_fee_type: GetOrderBroadcastFeeType, ) -> Self
Set the optional broadcastFeeType operation parameter.
Sourcepub fn exclude_routers(self, exclude_routers: impl Into<String>) -> Self
pub fn exclude_routers(self, exclude_routers: impl Into<String>) -> Self
Set the optional excludeRouters operation parameter.
Sourcepub fn exclude_dexes(self, exclude_dexes: impl Into<String>) -> Self
pub fn exclude_dexes(self, exclude_dexes: impl Into<String>) -> Self
Set the optional excludeDexes operation parameter.
Sourcepub async fn send(
self,
) -> Result<GetOrderResponse, ApiOpError<GetOrderApiError>>
pub async fn send( self, ) -> Result<GetOrderResponse, ApiOpError<GetOrderApiError>>
Send the request through the existing flat operation method.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetOrderBuilder<'a>
impl<'a> !UnwindSafe for GetOrderBuilder<'a>
impl<'a> Freeze for GetOrderBuilder<'a>
impl<'a> Send for GetOrderBuilder<'a>
impl<'a> Sync for GetOrderBuilder<'a>
impl<'a> Unpin for GetOrderBuilder<'a>
impl<'a> UnsafeUnpin for GetOrderBuilder<'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