pub struct MessageMediaInvoice {
pub shipping_address_requested: bool,
pub test: bool,
pub title: String,
pub description: String,
pub photo: Option<WebDocument>,
pub receipt_msg_id: Option<i32>,
pub currency: String,
pub total_amount: i64,
pub start_param: String,
pub extended_media: Option<MessageExtendedMedia>,
}Expand description
Generated from:
messageMediaInvoice#f6a548d3 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string extended_media:flags.4?MessageExtendedMedia = MessageMediaFields§
§shipping_address_requested: bool§test: bool§title: String§description: String§photo: Option<WebDocument>§receipt_msg_id: Option<i32>§currency: String§total_amount: i64§start_param: String§extended_media: Option<MessageExtendedMedia>Trait Implementations§
Source§impl Clone for MessageMediaInvoice
impl Clone for MessageMediaInvoice
Source§fn clone(&self) -> MessageMediaInvoice
fn clone(&self) -> MessageMediaInvoice
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 MessageMediaInvoice
impl Debug for MessageMediaInvoice
Source§impl Deserializable for MessageMediaInvoice
impl Deserializable for MessageMediaInvoice
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<MessageMediaInvoice> for MessageMedia
impl From<MessageMediaInvoice> for MessageMedia
Source§fn from(x: MessageMediaInvoice) -> Self
fn from(x: MessageMediaInvoice) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageMediaInvoice
impl Identifiable for MessageMediaInvoice
Source§const CONSTRUCTOR_ID: u32 = 0xf6a548d3
const CONSTRUCTOR_ID: u32 = 0xf6a548d3
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageMediaInvoice
impl PartialEq for MessageMediaInvoice
Source§impl Serializable for MessageMediaInvoice
impl Serializable for MessageMediaInvoice
Source§impl TryFrom<MessageMedia> for MessageMediaInvoice
impl TryFrom<MessageMedia> for MessageMediaInvoice
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageMediaInvoice
Auto Trait Implementations§
impl Freeze for MessageMediaInvoice
impl RefUnwindSafe for MessageMediaInvoice
impl Send for MessageMediaInvoice
impl Sync for MessageMediaInvoice
impl Unpin for MessageMediaInvoice
impl UnsafeUnpin for MessageMediaInvoice
impl UnwindSafe for MessageMediaInvoice
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