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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnswerShippingQuery
impl Debug for AnswerShippingQuery
source§impl Hash for AnswerShippingQuery
impl Hash for AnswerShippingQuery
source§impl PartialEq for AnswerShippingQuery
impl PartialEq for AnswerShippingQuery
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 StructuralPartialEq for AnswerShippingQuery
Auto Trait Implementations§
impl Freeze for AnswerShippingQuery
impl RefUnwindSafe for AnswerShippingQuery
impl Send for AnswerShippingQuery
impl Sync for AnswerShippingQuery
impl Unpin for AnswerShippingQuery
impl UnwindSafe for AnswerShippingQuery
Blanket Implementations§
source§impl<P> AnswerShippingQuerySetters for Pwhere
P: HasPayload<Payload = AnswerShippingQuery>,
impl<P> AnswerShippingQuerySetters for Pwhere
P: HasPayload<Payload = AnswerShippingQuery>,
source§fn shipping_query_id<T>(self, value: T) -> Self
fn shipping_query_id<T>(self, value: T) -> Self
shipping_query_id
field.source§fn shipping_options<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = ShippingOption>,
fn shipping_options<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = ShippingOption>,
shipping_options
field.source§fn error_message<T>(self, value: T) -> Self
fn error_message<T>(self, value: T) -> Self
error_message
field.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more