Struct rust_tdlib::types::AnswerShippingQuery
source · [−]pub struct AnswerShippingQuery { /* private fields */ }Expand description
Sets the result of a shipping query; for bots only
Implementations
sourceimpl 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
sourceimpl AsRef<AnswerShippingQuery> for AnswerShippingQuery
impl AsRef<AnswerShippingQuery> for AnswerShippingQuery
sourcefn as_ref(&self) -> &AnswerShippingQuery
fn as_ref(&self) -> &AnswerShippingQuery
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for AnswerShippingQuery
impl Clone for AnswerShippingQuery
sourcefn clone(&self) -> AnswerShippingQuery
fn clone(&self) -> AnswerShippingQuery
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 Default for AnswerShippingQuery
impl Default for AnswerShippingQuery
sourcefn default() -> AnswerShippingQuery
fn default() -> AnswerShippingQuery
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AnswerShippingQuery
impl<'de> Deserialize<'de> for AnswerShippingQuery
sourcefn 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
sourceimpl Serialize for AnswerShippingQuery
impl Serialize 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