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
Source§impl Serialize for MessageInvoice
impl Serialize for MessageInvoice
impl TDMessageContent 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 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