pub struct UserUniversalTransferParamsBuilder { /* private fields */ }Expand description
Builder for UserUniversalTransferParams.
Implementations§
Source§impl UserUniversalTransferParamsBuilder
impl UserUniversalTransferParamsBuilder
Sourcepub fn type<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn type<VALUE: Into<String>>(self, value: VALUE) -> Self
The r#type parameter.
This field is **required.
Sourcepub fn asset<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn asset<VALUE: Into<String>>(self, value: VALUE) -> Self
The asset parameter.
This field is **required.
Sourcepub fn amount<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
pub fn amount<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
The amount parameter.
This field is **required.
Sourcepub fn from_symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn from_symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
The from_symbol parameter.
This field is **optional.
Sourcepub fn to_symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn to_symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
The to_symbol parameter.
This field is **optional.
Sourcepub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The recv_window parameter.
This field is **optional.
Sourcepub fn build(self) -> Result<UserUniversalTransferParams, ParamBuildError>
pub fn build(self) -> Result<UserUniversalTransferParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserUniversalTransferParamsBuilder
impl RefUnwindSafe for UserUniversalTransferParamsBuilder
impl Send for UserUniversalTransferParamsBuilder
impl Sync for UserUniversalTransferParamsBuilder
impl Unpin for UserUniversalTransferParamsBuilder
impl UnsafeUnpin for UserUniversalTransferParamsBuilder
impl UnwindSafe for UserUniversalTransferParamsBuilder
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