pub struct MessageInvoice {
pub product_info: ProductInfo,
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 paid_media: Option<PaidMedia>,
pub paid_media_caption: Option<FormattedText>,
}Expand description
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
Fields§
§product_info: ProductInfoInformation about the product
currency: StringCurrency for the product price
total_amount: i64Product total price in the smallest units of the currency
start_parameter: StringUnique invoice bot start_parameter to be passed to getInternalLink
is_test: boolTrue, if the invoice is a test invoice
need_shipping_address: boolTrue, if the shipping address must be specified
receipt_message_id: i64The identifier of the message with the receipt, after the product has been purchased
paid_media: Option<PaidMedia>Extended media attached to the invoice; may be null if none
paid_media_caption: Option<FormattedText>Extended media caption; may be null if none
Trait Implementations§
Source§impl Clone for MessageInvoice
impl Clone for MessageInvoice
Source§fn clone(&self) -> MessageInvoice
fn clone(&self) -> MessageInvoice
Returns a duplicate 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 UnsafeUnpin 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