Struct rust_tdlib::types::MessagePaymentSuccessfulBot
source · pub struct MessagePaymentSuccessfulBot { /* private fields */ }
Expand description
A payment has been completed; for bots only
Implementations§
source§impl MessagePaymentSuccessfulBot
impl MessagePaymentSuccessfulBot
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessagePaymentSuccessfulBotBuilder
pub fn currency(&self) -> &String
pub fn total_amount(&self) -> i64
pub fn invoice_payload(&self) -> &String
pub fn shipping_option_id(&self) -> &String
pub fn order_info(&self) -> &Option<OrderInfo>
pub fn telegram_payment_charge_id(&self) -> &String
pub fn provider_payment_charge_id(&self) -> &String
Trait Implementations§
source§impl AsRef<MessagePaymentSuccessfulBot> for MessagePaymentSuccessfulBot
impl AsRef<MessagePaymentSuccessfulBot> for MessagePaymentSuccessfulBot
source§fn as_ref(&self) -> &MessagePaymentSuccessfulBot
fn as_ref(&self) -> &MessagePaymentSuccessfulBot
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for MessagePaymentSuccessfulBot
impl Clone for MessagePaymentSuccessfulBot
source§fn clone(&self) -> MessagePaymentSuccessfulBot
fn clone(&self) -> MessagePaymentSuccessfulBot
Returns a copy of the value. Read more
1.0.0 · 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 MessagePaymentSuccessfulBot
impl Debug for MessagePaymentSuccessfulBot
source§impl Default for MessagePaymentSuccessfulBot
impl Default for MessagePaymentSuccessfulBot
source§fn default() -> MessagePaymentSuccessfulBot
fn default() -> MessagePaymentSuccessfulBot
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessagePaymentSuccessfulBot
impl<'de> Deserialize<'de> for MessagePaymentSuccessfulBot
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