pub struct Subscriptions<'c> { /* private fields */ }Expand description
Resource namespace for plan + credit-balance.
Distinct from crate::Usage — usage().summary() returns
current-period consumption (credits remaining + builds used + storage),
while subscriptions().current() returns the plan tier itself
(price, billing period, cancel state). They overlap on
monthly_credits and max_projects but serve different audiences:
usage for “am I about to hit my limits?”, current for “what plan am I
on, and when does it renew?”.
Implementations§
Source§impl<'c> Subscriptions<'c>
impl<'c> Subscriptions<'c>
Sourcepub async fn current(&self) -> Result<CurrentSubscription, FloopError>
pub async fn current(&self) -> Result<CurrentSubscription, FloopError>
Fetch the authenticated user’s current subscription + credit snapshot. Read-only; cheap to call.
Auto Trait Implementations§
impl<'c> Freeze for Subscriptions<'c>
impl<'c> !RefUnwindSafe for Subscriptions<'c>
impl<'c> Send for Subscriptions<'c>
impl<'c> Sync for Subscriptions<'c>
impl<'c> Unpin for Subscriptions<'c>
impl<'c> UnsafeUnpin for Subscriptions<'c>
impl<'c> !UnwindSafe for Subscriptions<'c>
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