Struct rust_tdlib::types::PaymentForm
source · [−]pub struct PaymentForm { /* private fields */ }Expand description
Contains information about an invoice payment form
Implementations
sourceimpl PaymentForm
impl PaymentForm
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PaymentFormBuilder
pub fn id(&self) -> i64
pub fn invoice(&self) -> &Invoice
pub fn url(&self) -> &String
pub fn seller_bot_user_id(&self) -> i64
pub fn payments_provider_user_id(&self) -> i64
pub fn payments_provider(&self) -> &Option<PaymentsProviderStripe>
pub fn saved_order_info(&self) -> &Option<OrderInfo>
pub fn saved_credentials(&self) -> &Option<SavedCredentials>
pub fn can_save_credentials(&self) -> bool
pub fn need_password(&self) -> bool
Trait Implementations
sourceimpl AsRef<PaymentForm> for PaymentForm
impl AsRef<PaymentForm> for PaymentForm
sourcefn as_ref(&self) -> &PaymentForm
fn as_ref(&self) -> &PaymentForm
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PaymentForm
impl Clone for PaymentForm
sourcefn clone(&self) -> PaymentForm
fn clone(&self) -> PaymentForm
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 PaymentForm
impl Debug for PaymentForm
sourceimpl Default for PaymentForm
impl Default for PaymentForm
sourcefn default() -> PaymentForm
fn default() -> PaymentForm
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PaymentForm
impl<'de> Deserialize<'de> for PaymentForm
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 PaymentForm
impl Serialize for PaymentForm
Auto Trait Implementations
impl RefUnwindSafe for PaymentForm
impl Send for PaymentForm
impl Sync for PaymentForm
impl Unpin for PaymentForm
impl UnwindSafe for PaymentForm
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