pub struct CreateCustomerSession { /* private fields */ }
Expand description
Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
Implementations§
Source§impl CreateCustomerSession
impl CreateCustomerSession
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 CreateCustomerSession
impl Clone for CreateCustomerSession
Source§fn clone(&self) -> CreateCustomerSession
fn clone(&self) -> CreateCustomerSession
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 CreateCustomerSession
impl Debug for CreateCustomerSession
Source§impl Serialize for CreateCustomerSession
impl Serialize for CreateCustomerSession
Source§impl StripeRequest for CreateCustomerSession
impl StripeRequest for CreateCustomerSession
Source§type Output = CustomerSession
type Output = CustomerSession
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 CreateCustomerSession
impl RefUnwindSafe for CreateCustomerSession
impl Send for CreateCustomerSession
impl Sync for CreateCustomerSession
impl Unpin for CreateCustomerSession
impl UnwindSafe for CreateCustomerSession
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