Struct rust_tdlib::types::AnswerShippingQuery
source · pub struct AnswerShippingQuery { /* private fields */ }
Expand description
Sets the result of a shipping query; for bots only
Implementations§
source§impl AnswerShippingQuery
impl AnswerShippingQuery
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AnswerShippingQueryBuilder
pub fn shipping_query_id(&self) -> i64
pub fn shipping_options(&self) -> &Vec<ShippingOption>
pub fn error_message(&self) -> &String
Trait Implementations§
source§impl AsRef<AnswerShippingQuery> for AnswerShippingQuery
impl AsRef<AnswerShippingQuery> for AnswerShippingQuery
source§fn as_ref(&self) -> &AnswerShippingQuery
fn as_ref(&self) -> &AnswerShippingQuery
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for AnswerShippingQuery
impl Clone for AnswerShippingQuery
source§fn clone(&self) -> AnswerShippingQuery
fn clone(&self) -> AnswerShippingQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnswerShippingQuery
impl Debug for AnswerShippingQuery
source§impl Default for AnswerShippingQuery
impl Default for AnswerShippingQuery
source§fn default() -> AnswerShippingQuery
fn default() -> AnswerShippingQuery
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AnswerShippingQuery
impl<'de> Deserialize<'de> for AnswerShippingQuery
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more