pub struct UserUniversalTransferParams {
pub type: UserUniversalTransferTypeEnum,
pub asset: String,
pub amount: Decimal,
pub from_symbol: Option<UserUniversalTransferFromSymbolEnum>,
pub to_symbol: Option<UserUniversalTransferToSymbolEnum>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [user_universal_transfer] operation.
This struct holds all of the inputs you can pass when calling
user_universal_transfer.
Fields§
§type: UserUniversalTransferTypeEnumThe r#type parameter.
This field is **required.
asset: StringThe asset parameter.
This field is **required.
amount: DecimalThe amount parameter.
This field is **required.
from_symbol: Option<UserUniversalTransferFromSymbolEnum>The from_symbol parameter.
This field is **optional.
to_symbol: Option<UserUniversalTransferToSymbolEnum>The to_symbol parameter.
This field is **optional.
recv_window: Option<i64>The recv_window parameter.
This field is **optional.
Implementations§
Source§impl UserUniversalTransferParams
impl UserUniversalTransferParams
Sourcepub fn builder(
type: UserUniversalTransferTypeEnum,
asset: String,
amount: Decimal,
) -> UserUniversalTransferParamsBuilder
pub fn builder( type: UserUniversalTransferTypeEnum, asset: String, amount: Decimal, ) -> UserUniversalTransferParamsBuilder
Create a builder for [user_universal_transfer].
Required parameters:
r#type— Stringasset— Stringamount—rust_decimal::Decimal
Trait Implementations§
Source§impl Clone for UserUniversalTransferParams
impl Clone for UserUniversalTransferParams
Source§fn clone(&self) -> UserUniversalTransferParams
fn clone(&self) -> UserUniversalTransferParams
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 UserUniversalTransferParams
impl Debug for UserUniversalTransferParams
Source§impl<'de> Deserialize<'de> for UserUniversalTransferParams
impl<'de> Deserialize<'de> for UserUniversalTransferParams
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 UserUniversalTransferParams
impl RefUnwindSafe for UserUniversalTransferParams
impl Send for UserUniversalTransferParams
impl Sync for UserUniversalTransferParams
impl Unpin for UserUniversalTransferParams
impl UnsafeUnpin for UserUniversalTransferParams
impl UnwindSafe for UserUniversalTransferParams
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