Struct tg_bot_models::AnswerPreCheckoutQuery [−][src]
pub struct AnswerPreCheckoutQuery { pub pre_checkout_query_id: String, pub ok: bool, pub error_message: Option<String>, }
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.
Fields
pre_checkout_query_id: String
Unique identifier for the query to be answered
ok: bool
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
error_message: Option<String>
Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.
Trait Implementations
impl Debug for AnswerPreCheckoutQuery
[src]
impl Debug for AnswerPreCheckoutQuery
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AnswerPreCheckoutQuery
[src]
impl Clone for AnswerPreCheckoutQuery
fn clone(&self) -> AnswerPreCheckoutQuery
[src]
fn clone(&self) -> AnswerPreCheckoutQuery
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for AnswerPreCheckoutQuery
[src]
impl PartialEq for AnswerPreCheckoutQuery
fn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn ne(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests for !=
.
impl PartialOrd for AnswerPreCheckoutQuery
[src]
impl PartialOrd for AnswerPreCheckoutQuery
fn partial_cmp(&self, other: &AnswerPreCheckoutQuery) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AnswerPreCheckoutQuery) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn lt(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn le(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn gt(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn ge(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for AnswerPreCheckoutQuery
impl Send for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery