pub struct PortalSessionCreate<'a> { /* private fields */ }
Expand description
Request builder for creating customer portal sessions
Implementations§
Source§impl<'a> PortalSessionCreate<'a>
impl<'a> PortalSessionCreate<'a>
pub fn new(client: &'a Paddle, customer_id: impl Into<CustomerID>) -> Self
Sourcepub fn subscription_ids(
&mut self,
subscription_ids: impl IntoIterator<Item = impl Into<SubscriptionID>>,
) -> &mut Self
pub fn subscription_ids( &mut self, subscription_ids: impl IntoIterator<Item = impl Into<SubscriptionID>>, ) -> &mut Self
List of subscriptions to create authenticated customer portal deep links for.
Sourcepub async fn send(
&self,
) -> Result<SuccessResponse<CustomerPortalSession>, Error>
pub async fn send( &self, ) -> Result<SuccessResponse<CustomerPortalSession>, Error>
Send the request to Paddle and return the response.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PortalSessionCreate<'a>
impl<'a> RefUnwindSafe for PortalSessionCreate<'a>
impl<'a> Send for PortalSessionCreate<'a>
impl<'a> Sync for PortalSessionCreate<'a>
impl<'a> Unpin for PortalSessionCreate<'a>
impl<'a> UnwindSafe for PortalSessionCreate<'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