pub struct DeleteDiscountSubscription { /* private fields */ }
Expand description
Removes the currently applied discount on a subscription.
Implementations§
Source§impl DeleteDiscountSubscription
impl DeleteDiscountSubscription
Sourcepub fn new(subscription_exposed_id: impl Into<SubscriptionId>) -> Self
pub fn new(subscription_exposed_id: impl Into<SubscriptionId>) -> Self
Construct a new DeleteDiscountSubscription
.
Source§impl DeleteDiscountSubscription
impl DeleteDiscountSubscription
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 DeleteDiscountSubscription
impl Clone for DeleteDiscountSubscription
Source§fn clone(&self) -> DeleteDiscountSubscription
fn clone(&self) -> DeleteDiscountSubscription
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 DeleteDiscountSubscription
impl Debug for DeleteDiscountSubscription
Source§impl StripeRequest for DeleteDiscountSubscription
impl StripeRequest for DeleteDiscountSubscription
Source§type Output = DeletedDiscount
type Output = DeletedDiscount
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 DeleteDiscountSubscription
impl RefUnwindSafe for DeleteDiscountSubscription
impl Send for DeleteDiscountSubscription
impl Sync for DeleteDiscountSubscription
impl Unpin for DeleteDiscountSubscription
impl UnwindSafe for DeleteDiscountSubscription
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