pub struct UpgradeGift { /* private fields */ }Expand description
Builder for the upgradeGift method.
Upgrades a regular gift to a unique gift.
Requires the can_transfer_and_upgrade_gifts business bot right.
Also requires can_transfer_stars if the upgrade is paid.
Implementations§
Source§impl UpgradeGift
impl UpgradeGift
Sourcepub fn keep_original_details(self, v: bool) -> Self
pub fn keep_original_details(self, v: bool) -> Self
Pass true to preserve the original gift text, sender, and receiver in the upgraded gift.
Sourcepub fn star_count(self, v: u32) -> Self
pub fn star_count(self, v: u32) -> Self
Stars to pay for the upgrade from the business account balance.
Pass 0 if gift.prepaid_upgrade_star_count > 0.
Trait Implementations§
Source§impl IntoFuture for UpgradeGift
impl IntoFuture for UpgradeGift
Source§type IntoFuture = Pin<Box<dyn Future<Output = <UpgradeGift as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <UpgradeGift 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 UpgradeGift
impl !UnwindSafe for UpgradeGift
impl Freeze for UpgradeGift
impl Send for UpgradeGift
impl Sync for UpgradeGift
impl Unpin for UpgradeGift
impl UnsafeUnpin for UpgradeGift
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