pub struct BotSubscriptionUpdated {
pub user: User,
pub invoice_payload: String,
pub state: String,
}Expand description
Information about changes to a user payment subscription toward the bot.
Fields§
§user: UserUser who subscribed for payments toward the bot.
invoice_payload: StringBot-specified invoice payload.
state: StringThe new state of the subscription: "canceled" if the user canceled
it, "active" if the user re-enabled a previously canceled
subscription, or "failed" if payment for the subscription failed.
Trait Implementations§
Source§impl Clone for BotSubscriptionUpdated
impl Clone for BotSubscriptionUpdated
Source§fn clone(&self) -> BotSubscriptionUpdated
fn clone(&self) -> BotSubscriptionUpdated
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 BotSubscriptionUpdated
impl Debug for BotSubscriptionUpdated
Source§impl<'de> Deserialize<'de> for BotSubscriptionUpdated
impl<'de> Deserialize<'de> for BotSubscriptionUpdated
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BotSubscriptionUpdated
impl RefUnwindSafe for BotSubscriptionUpdated
impl Send for BotSubscriptionUpdated
impl Sync for BotSubscriptionUpdated
impl Unpin for BotSubscriptionUpdated
impl UnsafeUnpin for BotSubscriptionUpdated
impl UnwindSafe for BotSubscriptionUpdated
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