pub struct RetrieveSetupIntent { /* private fields */ }
Expand description
Retrieves the details of a SetupIntent that has previously been created.
Client-side retrieval using a publishable key is allowed when the client_secret
is provided in the query string.
When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
Implementations§
Source§impl RetrieveSetupIntent
impl RetrieveSetupIntent
Sourcepub fn new(intent: impl Into<SetupIntentId>) -> Self
pub fn new(intent: impl Into<SetupIntentId>) -> Self
Construct a new RetrieveSetupIntent
.
Sourcepub fn client_secret(self, client_secret: impl Into<String>) -> Self
pub fn client_secret(self, client_secret: impl Into<String>) -> Self
The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent.
Source§impl RetrieveSetupIntent
impl RetrieveSetupIntent
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 RetrieveSetupIntent
impl Clone for RetrieveSetupIntent
Source§fn clone(&self) -> RetrieveSetupIntent
fn clone(&self) -> RetrieveSetupIntent
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 RetrieveSetupIntent
impl Debug for RetrieveSetupIntent
Source§impl Serialize for RetrieveSetupIntent
impl Serialize for RetrieveSetupIntent
Source§impl StripeRequest for RetrieveSetupIntent
impl StripeRequest for RetrieveSetupIntent
Source§type Output = SetupIntent
type Output = SetupIntent
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 RetrieveSetupIntent
impl RefUnwindSafe for RetrieveSetupIntent
impl Send for RetrieveSetupIntent
impl Sync for RetrieveSetupIntent
impl Unpin for RetrieveSetupIntent
impl UnwindSafe for RetrieveSetupIntent
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