pub struct CreateEphemeralKey { /* private fields */ }Expand description
Creates a short-lived API key for a given resource.
Implementations§
Source§impl CreateEphemeralKey
impl CreateEphemeralKey
Sourcepub fn customer(self, customer: impl Into<String>) -> Self
pub fn customer(self, customer: impl Into<String>) -> Self
The ID of the Customer you’d like to modify using the resulting ephemeral key.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn issuing_card(self, issuing_card: impl Into<String>) -> Self
pub fn issuing_card(self, issuing_card: impl Into<String>) -> Self
The ID of the Issuing Card you’d like to access using the resulting ephemeral key.
Sourcepub fn nonce(self, nonce: impl Into<String>) -> Self
pub fn nonce(self, nonce: impl Into<String>) -> Self
A single-use token, created by Stripe.js, used for creating ephemeral keys for Issuing Cards without exchanging sensitive information.
Sourcepub fn verification_session(
self,
verification_session: impl Into<String>,
) -> Self
pub fn verification_session( self, verification_session: impl Into<String>, ) -> Self
The ID of the Identity VerificationSession you’d like to access using the resulting ephemeral key
Source§impl CreateEphemeralKey
impl CreateEphemeralKey
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateEphemeralKey
impl Clone for CreateEphemeralKey
Source§fn clone(&self) -> CreateEphemeralKey
fn clone(&self) -> CreateEphemeralKey
Returns a duplicate 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 CreateEphemeralKey
impl Debug for CreateEphemeralKey
Source§impl Default for CreateEphemeralKey
impl Default for CreateEphemeralKey
Source§impl Serialize for CreateEphemeralKey
impl Serialize for CreateEphemeralKey
Source§impl StripeRequest for CreateEphemeralKey
impl StripeRequest for CreateEphemeralKey
Source§type Output = EphemeralKey
type Output = EphemeralKey
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateEphemeralKey
impl RefUnwindSafe for CreateEphemeralKey
impl Send for CreateEphemeralKey
impl Sync for CreateEphemeralKey
impl Unpin for CreateEphemeralKey
impl UnwindSafe for CreateEphemeralKey
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