Struct teloxide_core::payloads::AnswerPreCheckoutQuery
source · [−]pub struct AnswerPreCheckoutQuery {
pub pre_checkout_query_id: String,
pub ok: bool,
pub error_message: Option<String>,
}Expand description
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: StringUnique identifier for the query to be answered
ok: boolSpecify 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.
Implementations
Trait Implementations
sourceimpl Clone for AnswerPreCheckoutQuery
impl Clone for AnswerPreCheckoutQuery
sourcefn clone(&self) -> AnswerPreCheckoutQueryⓘNotable traits for AnswerPreCheckoutQueryimpl Payload for AnswerPreCheckoutQuery type Output = True;
fn clone(&self) -> AnswerPreCheckoutQueryⓘNotable traits for AnswerPreCheckoutQueryimpl Payload for AnswerPreCheckoutQuery type Output = True;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AnswerPreCheckoutQuery
impl Debug for AnswerPreCheckoutQuery
sourceimpl Hash for AnswerPreCheckoutQuery
impl Hash for AnswerPreCheckoutQuery
sourceimpl PartialEq<AnswerPreCheckoutQuery> for AnswerPreCheckoutQuery
impl PartialEq<AnswerPreCheckoutQuery> for AnswerPreCheckoutQuery
sourcefn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
fn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AnswerPreCheckoutQuery) -> bool
fn ne(&self, other: &AnswerPreCheckoutQuery) -> bool
This method tests for !=.
sourceimpl Payload for AnswerPreCheckoutQuery
impl Payload for AnswerPreCheckoutQuery
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g. GetUpdates with
big timeout), the minimum timeout that should be used. Read more
sourceimpl Serialize for AnswerPreCheckoutQuery
impl Serialize for AnswerPreCheckoutQuery
impl Eq for AnswerPreCheckoutQuery
impl StructuralEq for AnswerPreCheckoutQuery
impl StructuralPartialEq for AnswerPreCheckoutQuery
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
impl<T> Erasable for T
impl<T> Erasable for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
