pub struct PaymentForm { /* private fields */ }
Expand description
Contains information about an invoice payment form
Implementations§
Source§impl 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§
Source§impl AsRef<PaymentForm> for PaymentForm
impl AsRef<PaymentForm> for PaymentForm
Source§fn as_ref(&self) -> &PaymentForm
fn as_ref(&self) -> &PaymentForm
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PaymentForm
impl Clone for PaymentForm
Source§fn clone(&self) -> PaymentForm
fn clone(&self) -> PaymentForm
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 PaymentForm
impl Debug for PaymentForm
Source§impl Default for PaymentForm
impl Default for PaymentForm
Source§fn default() -> PaymentForm
fn default() -> PaymentForm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentForm
impl<'de> Deserialize<'de> for PaymentForm
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 PaymentForm
impl RefUnwindSafe for PaymentForm
impl Send for PaymentForm
impl Sync for PaymentForm
impl Unpin for PaymentForm
impl UnwindSafe for PaymentForm
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