pub struct ConversionOperationConfigParams {
pub amount: Option<String>,
pub account_id: Option<String>,
pub src_asset_id: Option<String>,
pub dest_asset_id: String,
pub slippage_basis_points: Option<u16>,
}
Fields§
§amount: Option<String>
The amount to convert
account_id: Option<String>
Source account ID
src_asset_id: Option<String>
The asset ID to convert
dest_asset_id: String
The asset ID to get as a result of the conversion
slippage_basis_points: Option<u16>
Slippage tolerance (basis points)
Implementations§
Source§impl ConversionOperationConfigParams
impl ConversionOperationConfigParams
pub fn new(dest_asset_id: String) -> ConversionOperationConfigParams
Trait Implementations§
Source§impl Clone for ConversionOperationConfigParams
impl Clone for ConversionOperationConfigParams
Source§fn clone(&self) -> ConversionOperationConfigParams
fn clone(&self) -> ConversionOperationConfigParams
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 Default for ConversionOperationConfigParams
impl Default for ConversionOperationConfigParams
Source§fn default() -> ConversionOperationConfigParams
fn default() -> ConversionOperationConfigParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversionOperationConfigParams
impl<'de> Deserialize<'de> for ConversionOperationConfigParams
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
Source§impl PartialEq for ConversionOperationConfigParams
impl PartialEq for ConversionOperationConfigParams
Source§fn eq(&self, other: &ConversionOperationConfigParams) -> bool
fn eq(&self, other: &ConversionOperationConfigParams) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ConversionOperationConfigParams
Auto Trait Implementations§
impl Freeze for ConversionOperationConfigParams
impl RefUnwindSafe for ConversionOperationConfigParams
impl Send for ConversionOperationConfigParams
impl Sync for ConversionOperationConfigParams
impl Unpin for ConversionOperationConfigParams
impl UnwindSafe for ConversionOperationConfigParams
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