pub struct SubscriptionCancel<'a> { /* private fields */ }
Expand description
Request builder for resuming a subscription.
Implementations§
Source§impl<'a> SubscriptionCancel<'a>
impl<'a> SubscriptionCancel<'a>
pub fn new( client: &'a Paddle, subscription_id: impl Into<SubscriptionID>, ) -> Self
Sourcepub fn effective_from(&mut self, effective_from: EffectiveFrom) -> &mut Self
pub fn effective_from(&mut self, effective_from: EffectiveFrom) -> &mut Self
When this subscription change should take effect from.
Defaults to next_billing_period
for active subscriptions, which creates a scheduled_change
to apply the subscription change at the end of the billing period.
Sourcepub async fn send(&self) -> Result<SuccessResponse<Subscription>, Error>
pub async fn send(&self) -> Result<SuccessResponse<Subscription>, Error>
Send the request to Paddle and return the response.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SubscriptionCancel<'a>
impl<'a> RefUnwindSafe for SubscriptionCancel<'a>
impl<'a> Send for SubscriptionCancel<'a>
impl<'a> Sync for SubscriptionCancel<'a>
impl<'a> Unpin for SubscriptionCancel<'a>
impl<'a> UnwindSafe for SubscriptionCancel<'a>
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