pub struct TransferGift { /* private fields */ }Expand description
Builder for the transferGift method.
Transfers a unique gift to another user.
Requires the can_transfer_and_upgrade_gifts business bot right.
Also requires can_transfer_stars if the transfer is paid.
Implementations§
Source§impl TransferGift
impl TransferGift
Sourcepub fn star_count(self, v: u32) -> Self
pub fn star_count(self, v: u32) -> Self
Stars to pay for the transfer from the business account balance. Required if the transfer is not free.
Trait Implementations§
Source§impl IntoFuture for TransferGift
impl IntoFuture for TransferGift
Source§type IntoFuture = Pin<Box<dyn Future<Output = <TransferGift as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <TransferGift as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TransferGift
impl !UnwindSafe for TransferGift
impl Freeze for TransferGift
impl Send for TransferGift
impl Sync for TransferGift
impl Unpin for TransferGift
impl UnsafeUnpin for TransferGift
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