pub struct TiersClient { /* private fields */ }Expand description
Client for tier querying operations.
Requires a secret key (mr_sk_*) or a bearer token.
Implementations§
Source§impl TiersClient
impl TiersClient
Sourcepub async fn checkout(
&self,
tier_id: &str,
req: TierCheckoutRequest,
) -> Result<TierCheckoutSession, Error>
pub async fn checkout( &self, tier_id: &str, req: TierCheckoutRequest, ) -> Result<TierCheckoutSession, Error>
Create a checkout session for a tier (checkout-first flow).
This enables users to subscribe before authenticating. The billing provider
collects the customer’s email during checkout. After checkout completes, an
customer record is created with the email from the provider. The customer
can later be linked to an identity via CustomersClient::claim.
Requires a secret key (mr_sk_*).
Trait Implementations§
Source§impl Clone for TiersClient
impl Clone for TiersClient
Source§fn clone(&self) -> TiersClient
fn clone(&self) -> TiersClient
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 moreAuto Trait Implementations§
impl Freeze for TiersClient
impl !RefUnwindSafe for TiersClient
impl Send for TiersClient
impl Sync for TiersClient
impl Unpin for TiersClient
impl !UnwindSafe for TiersClient
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