pub struct SubscriptionGet<'a> { /* private fields */ }
Expand description
Request builder for fetching a specific subscription.
Implementations§
Source§impl<'a> SubscriptionGet<'a>
impl<'a> SubscriptionGet<'a>
pub fn new( client: &'a Paddle, subscription_id: impl Into<SubscriptionID>, ) -> Self
Sourcepub fn include(
&mut self,
entities: impl IntoIterator<Item = impl AsRef<str>>,
) -> &mut Self
pub fn include( &mut self, entities: impl IntoIterator<Item = impl AsRef<str>>, ) -> &mut Self
Include related entities in the response.
§Valid values are:
next_transaction
- Include an object with a preview of the next transaction for this subscription. May include prorated charges that aren’t yet billed and one-time charges.recurring_transaction_details
- Include an object with a preview of the recurring transaction for this subscription. This is what the customer can expect to be billed when there are no prorated or one-time charges.
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 SubscriptionGet<'a>
impl<'a> RefUnwindSafe for SubscriptionGet<'a>
impl<'a> Send for SubscriptionGet<'a>
impl<'a> Sync for SubscriptionGet<'a>
impl<'a> Unpin for SubscriptionGet<'a>
impl<'a> UnwindSafe for SubscriptionGet<'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