pub struct DeleteCustomer { /* private fields */ }
Expand description
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.
Implementations§
Source§impl DeleteCustomer
impl DeleteCustomer
Sourcepub fn new(customer: impl Into<CustomerId>) -> Self
pub fn new(customer: impl Into<CustomerId>) -> Self
Construct a new DeleteCustomer
.
Source§impl DeleteCustomer
impl DeleteCustomer
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 DeleteCustomer
impl Clone for DeleteCustomer
Source§fn clone(&self) -> DeleteCustomer
fn clone(&self) -> DeleteCustomer
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 DeleteCustomer
impl Debug for DeleteCustomer
Source§impl Serialize for DeleteCustomer
impl Serialize for DeleteCustomer
Source§impl StripeRequest for DeleteCustomer
impl StripeRequest for DeleteCustomer
Source§type Output = DeletedCustomer
type Output = DeletedCustomer
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 DeleteCustomer
impl RefUnwindSafe for DeleteCustomer
impl Send for DeleteCustomer
impl Sync for DeleteCustomer
impl Unpin for DeleteCustomer
impl UnwindSafe for DeleteCustomer
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