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
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<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
Mutably borrows from an owned value. Read more