pub struct UpdateNewPreCheckoutQuery { /* private fields */ }
Expand description
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
Implementations§
Source§impl UpdateNewPreCheckoutQuery
impl UpdateNewPreCheckoutQuery
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UpdateNewPreCheckoutQueryBuilder
pub fn id(&self) -> i64
pub fn sender_user_id(&self) -> i64
pub fn currency(&self) -> &String
pub fn total_amount(&self) -> i64
pub fn invoice_payload(&self) -> &String
pub fn shipping_option_id(&self) -> &String
pub fn order_info(&self) -> &Option<OrderInfo>
Trait Implementations§
Source§impl AsRef<UpdateNewPreCheckoutQuery> for UpdateNewPreCheckoutQuery
impl AsRef<UpdateNewPreCheckoutQuery> for UpdateNewPreCheckoutQuery
Source§fn as_ref(&self) -> &UpdateNewPreCheckoutQuery
fn as_ref(&self) -> &UpdateNewPreCheckoutQuery
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UpdateNewPreCheckoutQuery
impl Clone for UpdateNewPreCheckoutQuery
Source§fn clone(&self) -> UpdateNewPreCheckoutQuery
fn clone(&self) -> UpdateNewPreCheckoutQuery
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 UpdateNewPreCheckoutQuery
impl Debug for UpdateNewPreCheckoutQuery
Source§impl Default for UpdateNewPreCheckoutQuery
impl Default for UpdateNewPreCheckoutQuery
Source§fn default() -> UpdateNewPreCheckoutQuery
fn default() -> UpdateNewPreCheckoutQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
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
impl TDUpdate for UpdateNewPreCheckoutQuery
Auto Trait Implementations§
impl Freeze for UpdateNewPreCheckoutQuery
impl RefUnwindSafe for UpdateNewPreCheckoutQuery
impl Send for UpdateNewPreCheckoutQuery
impl Sync for UpdateNewPreCheckoutQuery
impl Unpin for UpdateNewPreCheckoutQuery
impl UnwindSafe for UpdateNewPreCheckoutQuery
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