pub struct SwapV2RoutePlanStep {
pub bps: f64,
pub percent: f64,
pub swap_info: SwapV2SwapInfo,
pub usd_value: Option<f64>,
}Fields§
§bps: f64Basis points of total swap routed through this step
percent: f64Percentage of total swap routed through this step
swap_info: SwapV2SwapInfo§usd_value: Option<f64>USD value of this step
Trait Implementations§
Source§impl Clone for SwapV2RoutePlanStep
impl Clone for SwapV2RoutePlanStep
Source§fn clone(&self) -> SwapV2RoutePlanStep
fn clone(&self) -> SwapV2RoutePlanStep
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 SwapV2RoutePlanStep
impl Debug for SwapV2RoutePlanStep
Source§impl<'de> Deserialize<'de> for SwapV2RoutePlanStep
impl<'de> Deserialize<'de> for SwapV2RoutePlanStep
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 SwapV2RoutePlanStep
impl RefUnwindSafe for SwapV2RoutePlanStep
impl Send for SwapV2RoutePlanStep
impl Sync for SwapV2RoutePlanStep
impl Unpin for SwapV2RoutePlanStep
impl UnsafeUnpin for SwapV2RoutePlanStep
impl UnwindSafe for SwapV2RoutePlanStep
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