pub struct InputMessageInvoice {
pub invoice: Invoice,
pub title: String,
pub description: String,
pub photo_url: String,
pub photo_size: i32,
pub photo_width: i32,
pub photo_height: i32,
pub payload: String,
pub provider_token: String,
pub provider_data: String,
pub start_parameter: String,
pub extended_media_content: InputMessageContent,
}
Expand description
A message with an invoice; can be used only by bots
Fields§
§invoice: Invoice
Invoice
title: String
Product title; 1-32 characters
description: String
Product description; 0-255 characters
photo_url: String
Product photo URL; optional
photo_size: i32
Product photo size
photo_width: i32
Product photo width
photo_height: i32
Product photo height
payload: String
The invoice payload
provider_token: String
Payment provider token
provider_data: String
JSON-encoded data about the invoice, which will be shared with the payment provider
start_parameter: String
Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message
extended_media_content: InputMessageContent
The content of extended media attached to the invoice. The content of the message to be sent. Must be one of the following types: inputMessagePhoto, inputMessageVideo
Trait Implementations§
Source§impl Clone for InputMessageInvoice
impl Clone for InputMessageInvoice
Source§fn clone(&self) -> InputMessageInvoice
fn clone(&self) -> InputMessageInvoice
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 InputMessageInvoice
impl Debug for InputMessageInvoice
Source§impl<'de> Deserialize<'de> for InputMessageInvoice
impl<'de> Deserialize<'de> for InputMessageInvoice
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 InputMessageInvoice
impl PartialEq for InputMessageInvoice
Source§impl Serialize for InputMessageInvoice
impl Serialize for InputMessageInvoice
impl StructuralPartialEq for InputMessageInvoice
Auto Trait Implementations§
impl Freeze for InputMessageInvoice
impl RefUnwindSafe for InputMessageInvoice
impl Send for InputMessageInvoice
impl Sync for InputMessageInvoice
impl Unpin for InputMessageInvoice
impl UnwindSafe for InputMessageInvoice
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