Struct teloxide_core::payloads::AnswerShippingQuery
source · pub struct AnswerShippingQuery {
pub shipping_query_id: String,
pub ok: bool,
pub shipping_options: Option<Vec<ShippingOption>>,
pub error_message: Option<String>,
}
Expand description
If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update
with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
Fields§
§shipping_query_id: String
Unique identifier for the query to be answered
ok: bool
Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
shipping_options: Option<Vec<ShippingOption>>
Required if ok is True. A JSON-serialized array of available shipping options.
error_message: Option<String>
Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. ‘Sorry, delivery to your desired address is unavailable’). Telegram will display this message to the user.
Implementations§
Trait Implementations§
source§impl Clone for AnswerShippingQuery
impl Clone for AnswerShippingQuery
source§impl Debug for AnswerShippingQuery
impl Debug for AnswerShippingQuery
source§impl Hash for AnswerShippingQuery
impl Hash for AnswerShippingQuery
source§impl PartialEq<AnswerShippingQuery> for AnswerShippingQuery
impl PartialEq<AnswerShippingQuery> for AnswerShippingQuery
source§fn eq(&self, other: &AnswerShippingQuery) -> bool
fn eq(&self, other: &AnswerShippingQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Payload for AnswerShippingQuery
impl Payload for AnswerShippingQuery
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 AnswerShippingQuery
impl Serialize for AnswerShippingQuery
impl Eq for AnswerShippingQuery
impl StructuralEq for AnswerShippingQuery
impl StructuralPartialEq for AnswerShippingQuery
Auto Trait Implementations§
impl RefUnwindSafe for AnswerShippingQuery
impl Send for AnswerShippingQuery
impl Sync for AnswerShippingQuery
impl Unpin for AnswerShippingQuery
impl UnwindSafe for AnswerShippingQuery
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.