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: StringUnique identifier for the query to be answered
ok: boolSpecify 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
sourceimpl Clone for AnswerShippingQuery
impl Clone for AnswerShippingQuery
sourcefn clone(&self) -> AnswerShippingQueryⓘNotable traits for AnswerShippingQueryimpl Payload for AnswerShippingQuery type Output = True;
fn clone(&self) -> AnswerShippingQueryⓘNotable traits for AnswerShippingQueryimpl Payload for AnswerShippingQuery type Output = True;
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for AnswerShippingQuery
impl Debug for AnswerShippingQuery
sourceimpl Hash for AnswerShippingQuery
impl Hash for AnswerShippingQuery
sourceimpl PartialEq<AnswerShippingQuery> for AnswerShippingQuery
impl PartialEq<AnswerShippingQuery> for AnswerShippingQuery
sourcefn eq(&self, other: &AnswerShippingQuery) -> bool
fn eq(&self, other: &AnswerShippingQuery) -> bool
sourceimpl Payload for AnswerShippingQuery
impl Payload for AnswerShippingQuery
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates with
big timeout), the minimum timeout that should be used. Read moresourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.