pub struct IncreaseLpPositionQuoteResult {Show 17 fields
pub collateral_a: u64,
pub collateral_b: u64,
pub max_collateral_a: u64,
pub max_collateral_b: u64,
pub borrow_a: u64,
pub borrow_b: u64,
pub total_a: u64,
pub total_b: u64,
pub min_total_a: u64,
pub min_total_b: u64,
pub swap_input: u64,
pub swap_output: u64,
pub swap_a_to_b: bool,
pub protocol_fee_a: u64,
pub protocol_fee_b: u64,
pub liquidation_lower_price: f64,
pub liquidation_upper_price: f64,
}Fields§
§collateral_a: u64§collateral_b: u64§max_collateral_a: u64§max_collateral_b: u64§borrow_a: u64§borrow_b: u64§total_a: u64§total_b: u64§min_total_a: u64§min_total_b: u64§swap_input: u64§swap_output: u64§swap_a_to_b: bool§protocol_fee_a: u64§protocol_fee_b: u64§liquidation_lower_price: f64§liquidation_upper_price: f64Trait Implementations§
Source§impl Clone for IncreaseLpPositionQuoteResult
impl Clone for IncreaseLpPositionQuoteResult
Source§fn clone(&self) -> IncreaseLpPositionQuoteResult
fn clone(&self) -> IncreaseLpPositionQuoteResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for IncreaseLpPositionQuoteResult
impl PartialEq for IncreaseLpPositionQuoteResult
Source§fn eq(&self, other: &IncreaseLpPositionQuoteResult) -> bool
fn eq(&self, other: &IncreaseLpPositionQuoteResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IncreaseLpPositionQuoteResult
impl StructuralPartialEq for IncreaseLpPositionQuoteResult
Auto Trait Implementations§
impl Freeze for IncreaseLpPositionQuoteResult
impl RefUnwindSafe for IncreaseLpPositionQuoteResult
impl Send for IncreaseLpPositionQuoteResult
impl Sync for IncreaseLpPositionQuoteResult
impl Unpin for IncreaseLpPositionQuoteResult
impl UnwindSafe for IncreaseLpPositionQuoteResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more