pub struct UpdateSubscriptionPauseCollection {
pub behavior: UpdateSubscriptionPauseCollectionBehavior,
pub resumes_at: Option<Timestamp>,
}
Expand description
If specified, payment collection for this subscription will be paused.
Note that the subscription status will be unchanged and will not be updated to paused
.
Learn more about pausing collection.
Fields§
§behavior: UpdateSubscriptionPauseCollectionBehavior
The payment collection behavior for this subscription while paused.
One of keep_as_draft
, mark_uncollectible
, or void
.
resumes_at: Option<Timestamp>
The time after which the subscription will resume collecting payments.
Implementations§
Source§impl UpdateSubscriptionPauseCollection
impl UpdateSubscriptionPauseCollection
pub fn new( behavior: impl Into<UpdateSubscriptionPauseCollectionBehavior>, ) -> Self
Trait Implementations§
Source§impl Clone for UpdateSubscriptionPauseCollection
impl Clone for UpdateSubscriptionPauseCollection
Source§fn clone(&self) -> UpdateSubscriptionPauseCollection
fn clone(&self) -> UpdateSubscriptionPauseCollection
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 moreimpl Copy for UpdateSubscriptionPauseCollection
Auto Trait Implementations§
impl Freeze for UpdateSubscriptionPauseCollection
impl RefUnwindSafe for UpdateSubscriptionPauseCollection
impl Send for UpdateSubscriptionPauseCollection
impl Sync for UpdateSubscriptionPauseCollection
impl Unpin for UpdateSubscriptionPauseCollection
impl UnwindSafe for UpdateSubscriptionPauseCollection
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