pub struct EditUserStarSubscription { /* private fields */ }Expand description
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.
Implementations§
Source§impl EditUserStarSubscription
impl EditUserStarSubscription
Sourcepub fn new<T>(
user_id: Integer,
telegram_payment_charge_id: T,
is_canceled: bool,
) -> Self
pub fn new<T>( user_id: Integer, telegram_payment_charge_id: T, is_canceled: bool, ) -> Self
Creates a new EditUserStarSubscription.
§Arguments
user_id- Identifier of the user whose subscription will be edited.telegram_payment_charge_id- Telegram payment identifier for the subscription.is_canceled- Whether to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period; use false to allow the user to re-enable a subscription that was previously canceled by the bot.
Trait Implementations§
Source§impl Clone for EditUserStarSubscription
impl Clone for EditUserStarSubscription
Source§fn clone(&self) -> EditUserStarSubscription
fn clone(&self) -> EditUserStarSubscription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditUserStarSubscription
impl Debug for EditUserStarSubscription
Source§impl Method for EditUserStarSubscription
impl Method for EditUserStarSubscription
Auto Trait Implementations§
impl Freeze for EditUserStarSubscription
impl RefUnwindSafe for EditUserStarSubscription
impl Send for EditUserStarSubscription
impl Sync for EditUserStarSubscription
impl Unpin for EditUserStarSubscription
impl UnsafeUnpin for EditUserStarSubscription
impl UnwindSafe for EditUserStarSubscription
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