Struct rust_tdlib::types::UpdateNewPreCheckoutQuery
source · pub struct UpdateNewPreCheckoutQuery { /* private fields */ }
Expand description
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
Implementations§
source§impl UpdateNewPreCheckoutQuery
impl UpdateNewPreCheckoutQuery
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UpdateNewPreCheckoutQueryBuilder
pub fn id(&self) -> i64
pub fn sender_user_id(&self) -> i64
pub fn currency(&self) -> &String
pub fn total_amount(&self) -> i64
pub fn invoice_payload(&self) -> &String
pub fn shipping_option_id(&self) -> &String
pub fn order_info(&self) -> &Option<OrderInfo>
Trait Implementations§
source§impl AsRef<UpdateNewPreCheckoutQuery> for UpdateNewPreCheckoutQuery
impl AsRef<UpdateNewPreCheckoutQuery> for UpdateNewPreCheckoutQuery
source§fn as_ref(&self) -> &UpdateNewPreCheckoutQuery
fn as_ref(&self) -> &UpdateNewPreCheckoutQuery
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for UpdateNewPreCheckoutQuery
impl Clone for UpdateNewPreCheckoutQuery
source§fn clone(&self) -> UpdateNewPreCheckoutQuery
fn clone(&self) -> UpdateNewPreCheckoutQuery
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 UpdateNewPreCheckoutQuery
impl Debug for UpdateNewPreCheckoutQuery
source§impl Default for UpdateNewPreCheckoutQuery
impl Default for UpdateNewPreCheckoutQuery
source§fn default() -> UpdateNewPreCheckoutQuery
fn default() -> UpdateNewPreCheckoutQuery
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
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