pub struct Invoice {Show 15 fields
pub test: bool,
pub name_requested: bool,
pub phone_requested: bool,
pub email_requested: bool,
pub shipping_address_requested: bool,
pub flexible: bool,
pub phone_to_provider: bool,
pub email_to_provider: bool,
pub recurring: bool,
pub currency: String,
pub prices: Vec<LabeledPrice>,
pub max_tip_amount: Option<i64>,
pub suggested_tip_amounts: Option<Vec<i64>>,
pub terms_url: Option<String>,
pub subscription_period: Option<i32>,
}Expand description
Generated from:
invoice#49ee584 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true recurring:flags.9?true currency:string prices:Vector<LabeledPrice> max_tip_amount:flags.8?long suggested_tip_amounts:flags.8?Vector<long> terms_url:flags.10?string subscription_period:flags.11?int = InvoiceFields§
§test: bool§name_requested: bool§phone_requested: bool§email_requested: bool§shipping_address_requested: bool§flexible: bool§phone_to_provider: bool§email_to_provider: bool§recurring: bool§currency: String§prices: Vec<LabeledPrice>§max_tip_amount: Option<i64>§suggested_tip_amounts: Option<Vec<i64>>§terms_url: Option<String>§subscription_period: Option<i32>Trait Implementations§
Source§impl Deserializable for Invoice
impl Deserializable for Invoice
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 Identifiable for Invoice
impl Identifiable for Invoice
Source§const CONSTRUCTOR_ID: u32 = 0x049ee584
const CONSTRUCTOR_ID: u32 = 0x049ee584
The constructor ID as specified in the TL schema.
Source§impl Serializable for Invoice
impl Serializable for Invoice
impl StructuralPartialEq for Invoice
Auto Trait Implementations§
impl Freeze for Invoice
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnsafeUnpin for Invoice
impl UnwindSafe for Invoice
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