pub struct SwapRequest {Show 18 fields
pub from: Asset,
pub to: Asset,
pub amount: String,
pub from_address: String,
pub to_address: String,
pub slippage: String,
pub swappers: Option<Vec<String>>,
pub swappers_exclude: Option<bool>,
pub swapper_groups: Option<Vec<String>>,
pub swappers_groups_exclude: Option<bool>,
pub messaging_protocols: Option<Vec<String>>,
pub source_contract: Option<String>,
pub destination_contract: Option<String>,
pub im_message: Option<String>,
pub contract_call: Option<bool>,
pub disable_estimate: Option<bool>,
pub referrer_address: Option<String>,
pub referrer_fee: Option<String>,
}Fields§
§from: Asset§to: Asset§amount: String§from_address: String§to_address: String§slippage: String§swappers: Option<Vec<String>>§swappers_exclude: Option<bool>§swapper_groups: Option<Vec<String>>§swappers_groups_exclude: Option<bool>§messaging_protocols: Option<Vec<String>>§source_contract: Option<String>§destination_contract: Option<String>§im_message: Option<String>§contract_call: Option<bool>§disable_estimate: Option<bool>§referrer_address: Option<String>§referrer_fee: Option<String>Implementations§
Trait Implementations§
Source§impl Debug for SwapRequest
impl Debug for SwapRequest
Source§impl<'de> Deserialize<'de> for SwapRequest
impl<'de> Deserialize<'de> for SwapRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SwapRequest
impl RefUnwindSafe for SwapRequest
impl Send for SwapRequest
impl Sync for SwapRequest
impl Unpin for SwapRequest
impl UnwindSafe for SwapRequest
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