pub struct PaymentProviderStripe {
pub publishable_key: String,
pub need_country: bool,
pub need_postal_code: bool,
pub need_cardholder_name: bool,
}Expand description
Stripe payment provider
Fields§
§publishable_key: StringStripe API publishable key
need_country: boolTrue, if the user country must be provided
need_postal_code: boolTrue, if the user ZIP/postal code must be provided
need_cardholder_name: boolTrue, if the cardholder name must be provided
Trait Implementations§
Source§impl Clone for PaymentProviderStripe
impl Clone for PaymentProviderStripe
Source§fn clone(&self) -> PaymentProviderStripe
fn clone(&self) -> PaymentProviderStripe
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 PaymentProviderStripe
impl Debug for PaymentProviderStripe
Source§impl Default for PaymentProviderStripe
impl Default for PaymentProviderStripe
Source§fn default() -> PaymentProviderStripe
fn default() -> PaymentProviderStripe
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentProviderStripe
impl<'de> Deserialize<'de> for PaymentProviderStripe
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
Source§impl PartialEq for PaymentProviderStripe
impl PartialEq for PaymentProviderStripe
Source§impl Serialize for PaymentProviderStripe
impl Serialize for PaymentProviderStripe
impl StructuralPartialEq for PaymentProviderStripe
Auto Trait Implementations§
impl Freeze for PaymentProviderStripe
impl RefUnwindSafe for PaymentProviderStripe
impl Send for PaymentProviderStripe
impl Sync for PaymentProviderStripe
impl Unpin for PaymentProviderStripe
impl UnwindSafe for PaymentProviderStripe
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