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;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AnswerShippingQuery) -> bool
fn ne(&self, other: &AnswerShippingQuery) -> bool
This method tests for !=.
sourceimpl Payload for AnswerShippingQuery
impl Payload for AnswerShippingQuery
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g. GetUpdates with
big timeout), the minimum timeout that should be used. Read more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
impl<T> Erasable for T
impl<T> Erasable for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
