pub struct MessageInvoice {
pub title: String,
pub description: FormattedText,
pub photo: Option<Photo>,
pub currency: String,
pub total_amount: i64,
pub start_parameter: String,
pub is_test: bool,
pub need_shipping_address: bool,
pub receipt_message_id: i64,
pub extended_media: Option<MessageExtendedMedia>,
}
Expand description
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
Fields§
§title: String
Product title
description: FormattedText
Product description
photo: Option<Photo>
Product photo; may be null
currency: String
Currency for the product price
total_amount: i64
Product total price in the smallest units of the currency
start_parameter: String
Unique invoice bot start_parameter to be passed to getInternalLink
is_test: bool
True, if the invoice is a test invoice
need_shipping_address: bool
True, if the shipping address must be specified
receipt_message_id: i64
The identifier of the message with the receipt, after the product has been purchased
extended_media: Option<MessageExtendedMedia>
Extended media attached to the invoice; may be null
Trait Implementations§
Source§impl Clone for MessageInvoice
impl Clone for MessageInvoice
Source§fn clone(&self) -> MessageInvoice
fn clone(&self) -> MessageInvoice
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 MessageInvoice
impl Debug for MessageInvoice
Source§impl Default for MessageInvoice
impl Default for MessageInvoice
Source§fn default() -> MessageInvoice
fn default() -> MessageInvoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageInvoice
impl<'de> Deserialize<'de> for MessageInvoice
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
Source§impl PartialEq for MessageInvoice
impl PartialEq for MessageInvoice
Source§impl Serialize for MessageInvoice
impl Serialize for MessageInvoice
impl StructuralPartialEq for MessageInvoice
Auto Trait Implementations§
impl Freeze for MessageInvoice
impl RefUnwindSafe for MessageInvoice
impl Send for MessageInvoice
impl Sync for MessageInvoice
impl Unpin for MessageInvoice
impl UnwindSafe for MessageInvoice
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