Struct rust_tdlib::types::MessageInvoice
source · pub struct MessageInvoice { /* private fields */ }
Expand description
A message with an invoice from a bot
Implementations§
source§impl MessageInvoice
impl MessageInvoice
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageInvoiceBuilder
pub fn title(&self) -> &String
pub fn description(&self) -> &String
pub fn photo(&self) -> &Option<Photo>
pub fn currency(&self) -> &String
pub fn total_amount(&self) -> i64
pub fn start_parameter(&self) -> &String
pub fn is_test(&self) -> bool
pub fn need_shipping_address(&self) -> bool
pub fn receipt_message_id(&self) -> i64
Trait Implementations§
source§impl AsRef<MessageInvoice> for MessageInvoice
impl AsRef<MessageInvoice> for MessageInvoice
source§fn as_ref(&self) -> &MessageInvoice
fn as_ref(&self) -> &MessageInvoice
Converts this type into a shared reference of the (usually inferred) input type.
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