Struct tdlib::types::InputMessageInvoice
source · 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: InvoiceInvoice
title: StringProduct title; 1-32 characters
description: StringProduct description; 0-255 characters
photo_url: StringProduct photo URL; optional
photo_size: i32Product photo size
photo_width: i32Product photo width
photo_height: i32Product photo height
payload: StringThe invoice payload
provider_token: StringPayment provider token
provider_data: StringJSON-encoded data about the invoice, which will be shared with the payment provider
start_parameter: StringUnique 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: InputMessageContentThe 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 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 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<InputMessageInvoice> for InputMessageInvoice
impl PartialEq<InputMessageInvoice> for InputMessageInvoice
source§fn eq(&self, other: &InputMessageInvoice) -> bool
fn eq(&self, other: &InputMessageInvoice) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InputMessageInvoice
impl Serialize for InputMessageInvoice
impl StructuralPartialEq for InputMessageInvoice
Auto Trait Implementations§
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