pub struct DustConvertParams {
pub asset: String,
pub account_type: Option<String>,
pub client_id: Option<String>,
pub target_asset: Option<String>,
pub third_party_client_id: Option<String>,
pub dust_quota_asset_to_target_asset_price: Option<Decimal>,
}Expand description
Request parameters for the [dust_convert] operation.
This struct holds all of the inputs you can pass when calling
dust_convert.
Fields§
§asset: StringThe asset parameter.
This field is **required.
account_type: Option<String>SPOT or MARGIN,default SPOT
This field is **optional.
client_id: Option<String>A unique id for the request
This field is **optional.
target_asset: Option<String>The target_asset parameter.
This field is **optional.
third_party_client_id: Option<String>The third_party_client_id parameter.
This field is **optional.
dust_quota_asset_to_target_asset_price: Option<Decimal>The dust_quota_asset_to_target_asset_price parameter.
This field is **optional.
Implementations§
Source§impl DustConvertParams
impl DustConvertParams
Sourcepub fn builder(asset: String) -> DustConvertParamsBuilder
pub fn builder(asset: String) -> DustConvertParamsBuilder
Create a builder for [dust_convert].
Required parameters:
asset— String
Trait Implementations§
Source§impl Clone for DustConvertParams
impl Clone for DustConvertParams
Source§fn clone(&self) -> DustConvertParams
fn clone(&self) -> DustConvertParams
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 moreAuto Trait Implementations§
impl Freeze for DustConvertParams
impl RefUnwindSafe for DustConvertParams
impl Send for DustConvertParams
impl Sync for DustConvertParams
impl Unpin for DustConvertParams
impl UnsafeUnpin for DustConvertParams
impl UnwindSafe for DustConvertParams
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