Struct tg_bot_models::AnswerShippingQuery [−][src]
pub struct AnswerShippingQuery { pub shipping_query_id: String, pub ok: bool, pub shipping_options: Option<Vec<ShippingOption>>, pub error_message: Option<String>, }
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.
Trait Implementations
impl Debug for AnswerShippingQuery
[src]
impl Debug for AnswerShippingQuery
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AnswerShippingQuery
[src]
impl Clone for AnswerShippingQuery
fn clone(&self) -> AnswerShippingQuery
[src]
fn clone(&self) -> AnswerShippingQuery
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for AnswerShippingQuery
[src]
impl PartialEq for AnswerShippingQuery
fn eq(&self, other: &AnswerShippingQuery) -> bool
[src]
fn eq(&self, other: &AnswerShippingQuery) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AnswerShippingQuery) -> bool
[src]
fn ne(&self, other: &AnswerShippingQuery) -> bool
This method tests for !=
.
impl PartialOrd for AnswerShippingQuery
[src]
impl PartialOrd for AnswerShippingQuery
fn partial_cmp(&self, other: &AnswerShippingQuery) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AnswerShippingQuery) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &AnswerShippingQuery) -> bool
[src]
fn lt(&self, other: &AnswerShippingQuery) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &AnswerShippingQuery) -> bool
[src]
fn le(&self, other: &AnswerShippingQuery) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &AnswerShippingQuery) -> bool
[src]
fn gt(&self, other: &AnswerShippingQuery) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &AnswerShippingQuery) -> bool
[src]
fn ge(&self, other: &AnswerShippingQuery) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for AnswerShippingQuery
impl Send for AnswerShippingQuery
impl Sync for AnswerShippingQuery
impl Sync for AnswerShippingQuery