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: 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.
Implementations§
Trait Implementations§
source§impl Clone for AnswerPreCheckoutQuery
impl Clone for AnswerPreCheckoutQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnswerPreCheckoutQuery
impl Debug for AnswerPreCheckoutQuery
source§impl Hash for AnswerPreCheckoutQuery
impl Hash for AnswerPreCheckoutQuery
source§impl PartialEq for AnswerPreCheckoutQuery
impl PartialEq for AnswerPreCheckoutQuery
source§impl Payload for AnswerPreCheckoutQuery
impl Payload for AnswerPreCheckoutQuery
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for AnswerPreCheckoutQuery
impl Serialize for AnswerPreCheckoutQuery
impl Eq for AnswerPreCheckoutQuery
impl StructuralPartialEq for AnswerPreCheckoutQuery
Auto Trait Implementations§
impl Freeze for AnswerPreCheckoutQuery
impl RefUnwindSafe for AnswerPreCheckoutQuery
impl Send for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery
impl Unpin for AnswerPreCheckoutQuery
impl UnwindSafe for AnswerPreCheckoutQuery
Blanket Implementations§
source§impl<P> AnswerPreCheckoutQuerySetters for Pwhere
P: HasPayload<Payload = AnswerPreCheckoutQuery>,
impl<P> AnswerPreCheckoutQuerySetters for Pwhere
P: HasPayload<Payload = AnswerPreCheckoutQuery>,
source§fn pre_checkout_query_id<T>(self, value: T) -> Self
fn pre_checkout_query_id<T>(self, value: T) -> Self
pre_checkout_query_id
field.source§fn error_message<T>(self, value: T) -> Self
fn error_message<T>(self, value: T) -> Self
error_message
field.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more