Struct rust_tdlib::types::Invoice
source · pub struct Invoice { /* private fields */ }
Expand description
Product invoice
Implementations§
source§impl Invoice
impl Invoice
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InvoiceBuilder
pub fn currency(&self) -> &String
pub fn price_parts(&self) -> &Vec<LabeledPricePart>
pub fn max_tip_amount(&self) -> i64
pub fn suggested_tip_amounts(&self) -> &Vec<i64>
pub fn is_test(&self) -> bool
pub fn need_name(&self) -> bool
pub fn need_phone_number(&self) -> bool
pub fn need_email_address(&self) -> bool
pub fn need_shipping_address(&self) -> bool
pub fn send_phone_number_to_provider(&self) -> bool
pub fn send_email_address_to_provider(&self) -> bool
pub fn is_flexible(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
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