pub struct PlatformSwapQuoteResponse {Show 17 fields
pub schema_version: u16,
pub contract_version: String,
pub quote_id: String,
pub server_time_ms: u64,
pub expires_at_ms: u64,
pub input_asset_id: String,
pub output_asset_id: String,
pub amount_in_atoms: String,
pub amount_in_consumed_atoms: String,
pub amount_out_atoms: String,
pub minimum_output_atoms: String,
pub input_fee_atoms: String,
pub output_fee_atoms: String,
pub maximum_tolerance_bps: u16,
pub reference_price: String,
pub price_impact_pct: String,
pub provider: String,
}Expand description
Short-lived customer economics for an exact-input asset swap.
Fields§
§schema_version: u16§contract_version: String§quote_id: String§server_time_ms: u64§expires_at_ms: u64§input_asset_id: String§output_asset_id: String§amount_in_atoms: String§amount_in_consumed_atoms: String§amount_out_atoms: String§minimum_output_atoms: String§input_fee_atoms: String§output_fee_atoms: String§maximum_tolerance_bps: u16§reference_price: String§price_impact_pct: String§provider: StringTrait Implementations§
Source§impl Clone for PlatformSwapQuoteResponse
impl Clone for PlatformSwapQuoteResponse
Source§fn clone(&self) -> PlatformSwapQuoteResponse
fn clone(&self) -> PlatformSwapQuoteResponse
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 PlatformSwapQuoteResponse
impl Debug for PlatformSwapQuoteResponse
Source§impl<'de> Deserialize<'de> for PlatformSwapQuoteResponse
impl<'de> Deserialize<'de> for PlatformSwapQuoteResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformSwapQuoteResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformSwapQuoteResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformSwapQuoteResponse
Source§impl Serialize for PlatformSwapQuoteResponse
impl Serialize for PlatformSwapQuoteResponse
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 PlatformSwapQuoteResponse
Auto Trait Implementations§
impl Freeze for PlatformSwapQuoteResponse
impl RefUnwindSafe for PlatformSwapQuoteResponse
impl Send for PlatformSwapQuoteResponse
impl Sync for PlatformSwapQuoteResponse
impl Unpin for PlatformSwapQuoteResponse
impl UnsafeUnpin for PlatformSwapQuoteResponse
impl UnwindSafe for PlatformSwapQuoteResponse
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