pub struct AnswerPreCheckoutQuery { /* private fields */ }Expand description
Builder for the answerPreCheckoutQuery method.
Confirm or reject a pre-checkout query. Must be called within 10 seconds of receiving the query — no exceptions.
Implementations§
Source§impl AnswerPreCheckoutQuery
impl AnswerPreCheckoutQuery
Sourcepub fn error_message(self, msg: impl Into<String>) -> Self
pub fn error_message(self, msg: impl Into<String>) -> Self
Required when ok = false — a human-readable reason for the failure
displayed to the user (e.g. "Sorry, the item is out of stock").
Trait Implementations§
Source§impl IntoFuture for AnswerPreCheckoutQuery
impl IntoFuture for AnswerPreCheckoutQuery
Source§type IntoFuture = Pin<Box<dyn Future<Output = <AnswerPreCheckoutQuery as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <AnswerPreCheckoutQuery as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for AnswerPreCheckoutQuery
impl !RefUnwindSafe for AnswerPreCheckoutQuery
impl Send for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery
impl Unpin for AnswerPreCheckoutQuery
impl UnsafeUnpin for AnswerPreCheckoutQuery
impl !UnwindSafe for AnswerPreCheckoutQuery
Blanket Implementations§
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
Mutably borrows from an owned value. Read more