pub struct BillingClient { /* private fields */ }Implementations§
Source§impl BillingClient
impl BillingClient
pub async fn checkout( &self, org_id: &str, body: &CheckoutRequest, ) -> Result<SubscriptionRef, SdkError>
pub async fn plan(&self, org_id: &str) -> Result<BillingPlanResponse, SdkError>
pub async fn portal( &self, org_id: &str, body: &PortalRequest, ) -> Result<PortalResponse, SdkError>
pub async fn upgrade_options( &self, org_id: &str, ) -> Result<PlansResponse, SdkError>
pub async fn usage(&self, org_id: &str) -> Result<QuotaReport, SdkError>
Trait Implementations§
Source§impl Clone for BillingClient
impl Clone for BillingClient
Source§fn clone(&self) -> BillingClient
fn clone(&self) -> BillingClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BillingClient
impl !RefUnwindSafe for BillingClient
impl Send for BillingClient
impl Sync for BillingClient
impl Unpin for BillingClient
impl UnsafeUnpin for BillingClient
impl !UnwindSafe for BillingClient
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