pub struct MessageInvoice {
pub title: String,
pub description: String,
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,
}Expand description
A message with an invoice from a bot
Fields§
§title: StringProduct title
description: StringProduct description
photo: Option<Photo>Product photo; may be null
currency: StringCurrency for the product price
total_amount: i64Product total price in the minimal quantity of the currency
start_parameter: StringUnique invoice bot start_parameter. To share an invoice use the URL https://t.me/{bot_username}?start={start_parameter}
is_test: boolTrue, if the invoice is a test invoice
need_shipping_address: boolTrue, if the shipping address should be specified
receipt_message_id: i64The identifier of the message with the receipt, after the product has been purchased
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<'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
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