pub struct GetSwapPriceResponse { /* private fields */ }
Implementations§
Source§impl GetSwapPriceResponse
impl GetSwapPriceResponse
pub fn block_number<T>(self, value: T) -> Self
pub fn fees<T>(self, value: T) -> Self
pub fn from_amount<T>(self, value: T) -> Self
pub fn from_token<T>(self, value: T) -> Self
pub fn gas<T>(self, value: T) -> Self
pub fn gas_price<T>(self, value: T) -> Self
pub fn issues<T>(self, value: T) -> Self
pub fn liquidity_available<T>(self, value: T) -> Self
pub fn min_to_amount<T>(self, value: T) -> Self
pub fn to_amount<T>(self, value: T) -> Self
pub fn to_token<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for GetSwapPriceResponse
impl Clone for GetSwapPriceResponse
Source§fn clone(&self) -> GetSwapPriceResponse
fn clone(&self) -> GetSwapPriceResponse
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 GetSwapPriceResponse
impl Debug for GetSwapPriceResponse
Source§impl Default for GetSwapPriceResponse
impl Default for GetSwapPriceResponse
Source§impl From<GetSwapPriceResponse> for GetSwapPriceResponse
impl From<GetSwapPriceResponse> for GetSwapPriceResponse
Source§fn from(value: GetSwapPriceResponse) -> Self
fn from(value: GetSwapPriceResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<GetSwapPriceResponse> for GetSwapPriceResponse
impl TryFrom<GetSwapPriceResponse> for GetSwapPriceResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetSwapPriceResponse) -> Result<Self, ConversionError>
fn try_from(value: GetSwapPriceResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetSwapPriceResponse
impl RefUnwindSafe for GetSwapPriceResponse
impl Send for GetSwapPriceResponse
impl Sync for GetSwapPriceResponse
impl Unpin for GetSwapPriceResponse
impl UnwindSafe for GetSwapPriceResponse
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