pub struct GetBuildBuilder<'a> { /* private fields */ }Expand description
Additive request builder for GetBuild.
Implementations§
Source§impl<'a> GetBuildBuilder<'a>
impl<'a> GetBuildBuilder<'a>
Sourcepub fn slippage_bps(self, slippage_bps: impl Into<String>) -> Self
pub fn slippage_bps(self, slippage_bps: impl Into<String>) -> Self
Set the optional slippageBps operation parameter.
Sourcepub fn mode(self, mode: GetBuildMode) -> Self
pub fn mode(self, mode: GetBuildMode) -> Self
Set the optional mode operation parameter.
Sourcepub fn dexes(self, dexes: impl Into<String>) -> Self
pub fn dexes(self, dexes: impl Into<String>) -> Self
Set the optional dexes 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 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 fee_account(self, fee_account: impl Into<String>) -> Self
pub fn fee_account(self, fee_account: impl Into<String>) -> Self
Set the optional feeAccount operation parameter.
Sourcepub fn max_accounts(self, max_accounts: i64) -> Self
pub fn max_accounts(self, max_accounts: i64) -> Self
Set the optional maxAccounts 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 wrap_and_unwrap_sol(self, wrap_and_unwrap_sol: bool) -> Self
pub fn wrap_and_unwrap_sol(self, wrap_and_unwrap_sol: bool) -> Self
Set the optional wrapAndUnwrapSol operation parameter.
Sourcepub fn destination_token_account(
self,
destination_token_account: impl Into<String>,
) -> Self
pub fn destination_token_account( self, destination_token_account: impl Into<String>, ) -> Self
Set the optional destinationTokenAccount operation parameter.
Sourcepub fn native_destination_account(
self,
native_destination_account: impl Into<String>,
) -> Self
pub fn native_destination_account( self, native_destination_account: impl Into<String>, ) -> Self
Set the optional nativeDestinationAccount operation parameter.
Sourcepub fn blockhash_slots_to_expiry(self, blockhash_slots_to_expiry: i64) -> Self
pub fn blockhash_slots_to_expiry(self, blockhash_slots_to_expiry: i64) -> Self
Set the optional blockhashSlotsToExpiry operation parameter.
Sourcepub fn tip_amount(self, tip_amount: impl Into<String>) -> Self
pub fn tip_amount(self, tip_amount: impl Into<String>) -> Self
Set the optional tipAmount operation parameter.
Sourcepub fn compute_unit_price_percentile(
self,
compute_unit_price_percentile: impl Into<String>,
) -> Self
pub fn compute_unit_price_percentile( self, compute_unit_price_percentile: impl Into<String>, ) -> Self
Set the optional computeUnitPricePercentile 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<GetBuildResponse, ApiOpError<GetBuildApiError>>
pub async fn send( self, ) -> Result<GetBuildResponse, ApiOpError<GetBuildApiError>>
Send the request through the existing flat operation method.