pub struct PlatformSwapQuoteRequest {
pub input_asset_id: String,
pub output_asset_id: String,
pub amount_in_atoms: String,
pub maximum_tolerance_bps: u16,
}Expand description
Exact-input asset swap request. Asset identifiers come from
PlatformAssetsResponse; implementation-specific identifiers are not
part of this contract.
Fields§
§input_asset_id: String§output_asset_id: String§amount_in_atoms: String§maximum_tolerance_bps: u16Trait Implementations§
Source§impl Clone for PlatformSwapQuoteRequest
impl Clone for PlatformSwapQuoteRequest
Source§fn clone(&self) -> PlatformSwapQuoteRequest
fn clone(&self) -> PlatformSwapQuoteRequest
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 PlatformSwapQuoteRequest
impl Debug for PlatformSwapQuoteRequest
Source§impl<'de> Deserialize<'de> for PlatformSwapQuoteRequest
impl<'de> Deserialize<'de> for PlatformSwapQuoteRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformSwapQuoteRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformSwapQuoteRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformSwapQuoteRequest
Source§impl PartialEq for PlatformSwapQuoteRequest
impl PartialEq for PlatformSwapQuoteRequest
Source§impl Serialize for PlatformSwapQuoteRequest
impl Serialize for PlatformSwapQuoteRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlatformSwapQuoteRequest
Auto Trait Implementations§
impl Freeze for PlatformSwapQuoteRequest
impl RefUnwindSafe for PlatformSwapQuoteRequest
impl Send for PlatformSwapQuoteRequest
impl Sync for PlatformSwapQuoteRequest
impl Unpin for PlatformSwapQuoteRequest
impl UnsafeUnpin for PlatformSwapQuoteRequest
impl UnwindSafe for PlatformSwapQuoteRequest
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