pub struct CreateCheckParamsBuilder<A = Missing, M = Missing> { /* private fields */ }Implementations§
Source§impl<M> CreateCheckParamsBuilder<Missing, M>
impl<M> CreateCheckParamsBuilder<Missing, M>
Sourcepub fn asset(
self,
asset: CryptoCurrencyCode,
) -> CreateCheckParamsBuilder<Set, M>
pub fn asset( self, asset: CryptoCurrencyCode, ) -> CreateCheckParamsBuilder<Set, M>
Set the asset for the check. Cryptocurrency alphabetic code.
Source§impl<A> CreateCheckParamsBuilder<A, Missing>
impl<A> CreateCheckParamsBuilder<A, Missing>
Sourcepub fn amount(self, amount: Decimal) -> CreateCheckParamsBuilder<A, Set>
pub fn amount(self, amount: Decimal) -> CreateCheckParamsBuilder<A, Set>
Set the amount for the check. Amount of the check in float.
Source§impl<A, M> CreateCheckParamsBuilder<A, M>
impl<A, M> CreateCheckParamsBuilder<A, M>
Sourcepub fn pin_to_user_id(self, pin_to_user_id: u64) -> Self
pub fn pin_to_user_id(self, pin_to_user_id: u64) -> Self
Set the user ID to pin the check to. Optional. ID of the user who will be able to activate the check.
Sourcepub fn pin_to_username(self, pin_to_username: &str) -> Self
pub fn pin_to_username(self, pin_to_username: &str) -> Self
Set the username to pin the check to. Optional. A user with the specified username will be able to activate the check.
Source§impl CreateCheckParamsBuilder<Set, Set>
impl CreateCheckParamsBuilder<Set, Set>
pub async fn build( self, client: &CryptoBot, ) -> CryptoBotResult<CreateCheckParams>
Trait Implementations§
Auto Trait Implementations§
impl<A, M> Freeze for CreateCheckParamsBuilder<A, M>
impl<A, M> RefUnwindSafe for CreateCheckParamsBuilder<A, M>where
A: RefUnwindSafe,
M: RefUnwindSafe,
impl<A, M> Send for CreateCheckParamsBuilder<A, M>
impl<A, M> Sync for CreateCheckParamsBuilder<A, M>
impl<A, M> Unpin for CreateCheckParamsBuilder<A, M>
impl<A, M> UnwindSafe for CreateCheckParamsBuilder<A, M>where
A: UnwindSafe,
M: UnwindSafe,
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