pub struct DexQuoteResponse { /* private fields */ }Implementations§
Source§impl DexQuoteResponse
impl DexQuoteResponse
pub fn amount_out<T>(self, value: T) -> Self
pub fn current_price<T>(self, value: T) -> Self
pub fn execution_price<T>(self, value: T) -> Self
pub fn fee<T>(self, value: T) -> Self
pub fn min_amount_out<T>(self, value: T) -> Self
pub fn price_impact<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for DexQuoteResponse
impl Clone for DexQuoteResponse
Source§fn clone(&self) -> DexQuoteResponse
fn clone(&self) -> DexQuoteResponse
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 Debug for DexQuoteResponse
impl Debug for DexQuoteResponse
Source§impl Default for DexQuoteResponse
impl Default for DexQuoteResponse
Source§impl From<DexQuoteResponse> for DexQuoteResponse
impl From<DexQuoteResponse> for DexQuoteResponse
Source§fn from(value: DexQuoteResponse) -> Self
fn from(value: DexQuoteResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DexQuoteResponse> for DexQuoteResponse
impl TryFrom<DexQuoteResponse> for DexQuoteResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexQuoteResponse) -> Result<Self, ConversionError>
fn try_from(value: DexQuoteResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexQuoteResponse
impl RefUnwindSafe for DexQuoteResponse
impl Send for DexQuoteResponse
impl Sync for DexQuoteResponse
impl Unpin for DexQuoteResponse
impl UnwindSafe for DexQuoteResponse
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