[−][src]Struct tgbot::methods::AnswerPreCheckoutQuery
Respond to pre-checkout query
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 Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent
Methods
impl AnswerPreCheckoutQuery
[src]
pub fn ok<S: Into<String>>(pre_checkout_query_id: S) -> Self
[src]
pub fn error<S: Into<String>>(
pre_checkout_query_id: S,
error_message: S
) -> Self
[src]
pre_checkout_query_id: S,
error_message: S
) -> Self
Error answer
Arguments
- pre_checkout_query_id - Unique identifier for the query to be answered
- error_message - Error message in human readable form that explains the reason for failure to proceed with the checkout
Trait Implementations
impl Clone for AnswerPreCheckoutQuery
[src]
fn clone(&self) -> AnswerPreCheckoutQuery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AnswerPreCheckoutQuery
[src]
impl Method for AnswerPreCheckoutQuery
[src]
impl Serialize for AnswerPreCheckoutQuery
[src]
Auto Trait Implementations
impl RefUnwindSafe for AnswerPreCheckoutQuery
impl Send for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery
impl Unpin for AnswerPreCheckoutQuery
impl UnwindSafe for AnswerPreCheckoutQuery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,