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

Unique identifier for the query to be answered

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)

Required if ok is True. A JSON-serialized array of available shipping options.

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]

Formats the value using the given formatter. Read more

impl Clone for AnswerShippingQuery
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for AnswerShippingQuery
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for AnswerShippingQuery
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations