pub struct GetBuildResponse {Show 16 fields
pub addresses_by_lookup_table_address: Option<GetBuildResponseAddressesByLookupTableAddress>,
pub blockhash_with_metadata: Option<GetBuildResponseBlockhashWithMetadata>,
pub cleanup_instruction: Option<SwapV2Instruction>,
pub compute_budget_instructions: Option<Vec<SwapV2Instruction>>,
pub in_amount: Option<String>,
pub input_mint: Option<String>,
pub other_amount_threshold: Option<String>,
pub other_instructions: Option<Vec<SwapV2Instruction>>,
pub out_amount: Option<String>,
pub output_mint: Option<String>,
pub route_plan: Option<Vec<SwapV2RoutePlanStep>>,
pub setup_instructions: Option<Vec<SwapV2Instruction>>,
pub slippage_bps: Option<f64>,
pub swap_instruction: Option<SwapV2Instruction>,
pub swap_mode: Option<String>,
pub tip_instruction: Option<SwapV2Instruction>,
}Fields§
§addresses_by_lookup_table_address: Option<GetBuildResponseAddressesByLookupTableAddress>Address lookup table mappings for v0 transactions
blockhash_with_metadata: Option<GetBuildResponseBlockhashWithMetadata>§cleanup_instruction: Option<SwapV2Instruction>§compute_budget_instructions: Option<Vec<SwapV2Instruction>>Compute unit price instruction (does not include compute unit limit)
in_amount: Option<String>§input_mint: Option<String>§other_amount_threshold: Option<String>Minimum output amount after slippage
other_instructions: Option<Vec<SwapV2Instruction>>§out_amount: Option<String>§output_mint: Option<String>§route_plan: Option<Vec<SwapV2RoutePlanStep>>§setup_instructions: Option<Vec<SwapV2Instruction>>Pre-swap setup instructions (e.g. create ATAs)
slippage_bps: Option<f64>§swap_instruction: Option<SwapV2Instruction>§swap_mode: Option<String>§tip_instruction: Option<SwapV2Instruction>Trait Implementations§
Source§impl Clone for GetBuildResponse
impl Clone for GetBuildResponse
Source§fn clone(&self) -> GetBuildResponse
fn clone(&self) -> GetBuildResponse
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 GetBuildResponse
impl Debug for GetBuildResponse
Source§impl Default for GetBuildResponse
impl Default for GetBuildResponse
Source§fn default() -> GetBuildResponse
fn default() -> GetBuildResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetBuildResponse
impl<'de> Deserialize<'de> for GetBuildResponse
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 GetBuildResponse
impl RefUnwindSafe for GetBuildResponse
impl Send for GetBuildResponse
impl Sync for GetBuildResponse
impl Unpin for GetBuildResponse
impl UnsafeUnpin for GetBuildResponse
impl UnwindSafe for GetBuildResponse
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