Struct square_api_client::models::CreateCardRequest
source · [−]pub struct CreateCardRequest {
pub idempotency_key: String,
pub source_id: String,
pub verification_token: Option<String>,
pub card: Card,
}
Expand description
This is a model class for CreateCardRequest type.
Fields
idempotency_key: String
A unique string that identifies this CreateCard request. Keys can be any valid string and must be unique for every request. Max: 45 characters See Idempotency keys for more information.
source_id: String
The ID of the source which represents the card information to be stored. This can be a card nonce or a payment id.
verification_token: Option<String>
An identifying token generated by Payments.verifyBuyer(). Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. See the SCA Overview.
card: Card
Represents the payment details of a card to be used for payments. These details are determined by the payment token generated by Web Payments SDK.
Trait Implementations
sourceimpl Clone for CreateCardRequest
impl Clone for CreateCardRequest
sourcefn clone(&self) -> CreateCardRequest
fn clone(&self) -> CreateCardRequest
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 moresourceimpl Debug for CreateCardRequest
impl Debug for CreateCardRequest
sourceimpl Default for CreateCardRequest
impl Default for CreateCardRequest
sourcefn default() -> CreateCardRequest
fn default() -> CreateCardRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateCardRequest> for CreateCardRequest
impl PartialEq<CreateCardRequest> for CreateCardRequest
sourcefn eq(&self, other: &CreateCardRequest) -> bool
fn eq(&self, other: &CreateCardRequest) -> bool
sourceimpl Serialize for CreateCardRequest
impl Serialize for CreateCardRequest
impl Eq for CreateCardRequest
impl StructuralEq for CreateCardRequest
impl StructuralPartialEq for CreateCardRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateCardRequest
impl Send for CreateCardRequest
impl Sync for CreateCardRequest
impl Unpin for CreateCardRequest
impl UnwindSafe for CreateCardRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.