pub struct TransferParamsBuilder<U = Missing, A = Missing, M = Missing, S = Missing> { /* private fields */ }Implementations§
Source§impl<A, M, S> TransferParamsBuilder<Missing, A, M, S>
impl<A, M, S> TransferParamsBuilder<Missing, A, M, S>
Sourcepub fn user_id(self, user_id: u64) -> TransferParamsBuilder<Set, A, M, S>
pub fn user_id(self, user_id: u64) -> TransferParamsBuilder<Set, A, M, S>
Set the Telegram user ID for the transfer.
Source§impl<U, M, S> TransferParamsBuilder<U, Missing, M, S>
impl<U, M, S> TransferParamsBuilder<U, Missing, M, S>
Sourcepub fn asset(
self,
asset: CryptoCurrencyCode,
) -> TransferParamsBuilder<U, Set, M, S>
pub fn asset( self, asset: CryptoCurrencyCode, ) -> TransferParamsBuilder<U, Set, M, S>
Set the asset for the transfer.
Source§impl<U, A, S> TransferParamsBuilder<U, A, Missing, S>
impl<U, A, S> TransferParamsBuilder<U, A, Missing, S>
Sourcepub fn amount(self, amount: Decimal) -> TransferParamsBuilder<U, A, Set, S>
pub fn amount(self, amount: Decimal) -> TransferParamsBuilder<U, A, Set, S>
Set the amount for the transfer. The minimum and maximum amount limits for each of the supported assets roughly correspond to 1-25000 USD.
Source§impl<U, A, M> TransferParamsBuilder<U, A, M, Missing>
impl<U, A, M> TransferParamsBuilder<U, A, M, Missing>
Source§impl<U, A, M, S> TransferParamsBuilder<U, A, M, S>
impl<U, A, M, S> TransferParamsBuilder<U, A, M, S>
Sourcepub fn comment(self, comment: impl Into<String>) -> Self
pub fn comment(self, comment: impl Into<String>) -> Self
Set the comment for the transfer. Optional. Comment for the transfer. Users will see this comment in the notification about the transfer. Up to 1024 symbols.
Sourcepub fn disable_send_notification(self, disable: bool) -> Self
pub fn disable_send_notification(self, disable: bool) -> Self
Set the disable send notification for the transfer. Optional. Pass true to not send to the user the notification about the transfer. Defaults to false.
Source§impl TransferParamsBuilder<Set, Set, Set, Set>
impl TransferParamsBuilder<Set, Set, Set, Set>
pub async fn build(self, client: &CryptoBot) -> CryptoBotResult<TransferParams>
Trait Implementations§
Auto Trait Implementations§
impl<U, A, M, S> Freeze for TransferParamsBuilder<U, A, M, S>
impl<U, A, M, S> RefUnwindSafe for TransferParamsBuilder<U, A, M, S>
impl<U, A, M, S> Send for TransferParamsBuilder<U, A, M, S>
impl<U, A, M, S> Sync for TransferParamsBuilder<U, A, M, S>
impl<U, A, M, S> Unpin for TransferParamsBuilder<U, A, M, S>
impl<U, A, M, S> UnwindSafe for TransferParamsBuilder<U, A, M, S>
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