pub struct AnswerShippingQuery { /* private fields */ }Expand description
Builder for the answerShippingQuery method.
Respond to a shipping query from a user. Must be called when the invoice
has is_flexible = true.
Implementations§
Source§impl AnswerShippingQuery
impl AnswerShippingQuery
Sourcepub fn shipping_options(self, opts: Vec<ShippingOption>) -> Self
pub fn shipping_options(self, opts: Vec<ShippingOption>) -> Self
Required when ok = true — the available shipping options to present to the user.
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 why delivery is not possible.
Trait Implementations§
Source§impl IntoFuture for AnswerShippingQuery
impl IntoFuture for AnswerShippingQuery
Source§type IntoFuture = Pin<Box<dyn Future<Output = <AnswerShippingQuery as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <AnswerShippingQuery 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 !RefUnwindSafe for AnswerShippingQuery
impl !UnwindSafe for AnswerShippingQuery
impl Freeze for AnswerShippingQuery
impl Send for AnswerShippingQuery
impl Sync for AnswerShippingQuery
impl Unpin for AnswerShippingQuery
impl UnsafeUnpin for AnswerShippingQuery
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