pub struct InputMediaInvoice {
pub title: String,
pub description: String,
pub photo: Option<InputWebDocument>,
pub invoice: Invoice,
pub payload: Vec<u8>,
pub provider: Option<String>,
pub provider_data: DataJson,
pub start_param: Option<String>,
pub extended_media: Option<InputMedia>,
}Expand description
Generated from:
inputMediaInvoice#405fef0d flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:flags.3?string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMediaFields§
§title: String§description: String§photo: Option<InputWebDocument>§invoice: Invoice§payload: Vec<u8>§provider: Option<String>§provider_data: DataJson§start_param: Option<String>§extended_media: Option<InputMedia>Trait Implementations§
Source§impl Clone for InputMediaInvoice
impl Clone for InputMediaInvoice
Source§fn clone(&self) -> InputMediaInvoice
fn clone(&self) -> InputMediaInvoice
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 InputMediaInvoice
impl Debug for InputMediaInvoice
Source§impl Deserializable for InputMediaInvoice
impl Deserializable for InputMediaInvoice
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<InputMediaInvoice> for InputMedia
impl From<InputMediaInvoice> for InputMedia
Source§fn from(x: InputMediaInvoice) -> Self
fn from(x: InputMediaInvoice) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputMediaInvoice
impl Identifiable for InputMediaInvoice
Source§const CONSTRUCTOR_ID: u32 = 0x405fef0d
const CONSTRUCTOR_ID: u32 = 0x405fef0d
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputMediaInvoice
impl PartialEq for InputMediaInvoice
Source§impl Serializable for InputMediaInvoice
impl Serializable for InputMediaInvoice
Source§impl TryFrom<InputMedia> for InputMediaInvoice
impl TryFrom<InputMedia> for InputMediaInvoice
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputMediaInvoice
Auto Trait Implementations§
impl Freeze for InputMediaInvoice
impl RefUnwindSafe for InputMediaInvoice
impl Send for InputMediaInvoice
impl Sync for InputMediaInvoice
impl Unpin for InputMediaInvoice
impl UnsafeUnpin for InputMediaInvoice
impl UnwindSafe for InputMediaInvoice
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