Struct stripe::TokenParams
source · pub struct TokenParams {
pub token: String,
}
Fields§
§token: String
For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: “tok_visa”}.
Trait Implementations§
source§impl Clone for TokenParams
impl Clone for TokenParams
source§fn clone(&self) -> TokenParams
fn clone(&self) -> TokenParams
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 TokenParams
impl Debug for TokenParams
source§impl Default for TokenParams
impl Default for TokenParams
source§fn default() -> TokenParams
fn default() -> TokenParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TokenParams
impl<'de> Deserialize<'de> for TokenParams
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 RefUnwindSafe for TokenParams
impl Send for TokenParams
impl Sync for TokenParams
impl Unpin for TokenParams
impl UnwindSafe for TokenParams
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