[−][src]Struct tg_bot_models::AnswerPreCheckoutQuery
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 PartialEq<AnswerPreCheckoutQuery> for AnswerPreCheckoutQuery
[src]
fn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn ne(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
impl Clone for AnswerPreCheckoutQuery
[src]
fn clone(&self) -> AnswerPreCheckoutQuery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<AnswerPreCheckoutQuery> for AnswerPreCheckoutQuery
[src]
fn partial_cmp(&self, other: &AnswerPreCheckoutQuery) -> Option<Ordering>
[src]
fn lt(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn le(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn gt(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
fn ge(&self, other: &AnswerPreCheckoutQuery) -> bool
[src]
impl Debug for AnswerPreCheckoutQuery
[src]
impl Serialize for AnswerPreCheckoutQuery
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for AnswerPreCheckoutQuery
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,