Struct rust_tdlib::types::UpdateNewPreCheckoutQuery
source · [−]pub struct UpdateNewPreCheckoutQuery { /* private fields */ }Expand description
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
Implementations
sourceimpl 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
sourceimpl AsRef<UpdateNewPreCheckoutQuery> for UpdateNewPreCheckoutQuery
impl AsRef<UpdateNewPreCheckoutQuery> for UpdateNewPreCheckoutQuery
sourcefn as_ref(&self) -> &UpdateNewPreCheckoutQuery
fn as_ref(&self) -> &UpdateNewPreCheckoutQuery
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for UpdateNewPreCheckoutQuery
impl Clone for UpdateNewPreCheckoutQuery
sourcefn clone(&self) -> UpdateNewPreCheckoutQuery
fn clone(&self) -> UpdateNewPreCheckoutQuery
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 UpdateNewPreCheckoutQuery
impl Debug for UpdateNewPreCheckoutQuery
sourceimpl Default for UpdateNewPreCheckoutQuery
impl Default for UpdateNewPreCheckoutQuery
sourcefn default() -> UpdateNewPreCheckoutQuery
fn default() -> UpdateNewPreCheckoutQuery
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
impl<'de> Deserialize<'de> for UpdateNewPreCheckoutQuery
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 UpdateNewPreCheckoutQuery
impl Serialize for UpdateNewPreCheckoutQuery
impl TDUpdate for UpdateNewPreCheckoutQuery
Auto Trait Implementations
impl RefUnwindSafe for UpdateNewPreCheckoutQuery
impl Send for UpdateNewPreCheckoutQuery
impl Sync for UpdateNewPreCheckoutQuery
impl Unpin for UpdateNewPreCheckoutQuery
impl UnwindSafe for UpdateNewPreCheckoutQuery
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