pub struct MistralSnapshot {
pub plan: Option<String>,
pub api: Option<UsageWindow>,
pub vibe: UsageWindow,
pub api_budget: Option<f64>,
pub vibe_budget: f64,
pub currency: String,
pub api_payg: bool,
pub vibe_payg: bool,
}Expand description
Mistral — the two monthly budgets the plan shares across Studio and Vibe
Code. Both reset on the calendar-month boundary the billing response
reports; the exact cycle length is not stated, so window_duration is zero
and the renderers do not pace against a guessed month.
Fields§
§plan: Option<String>plan_name from /v1/billing/subscription; None when that optional
read failed.
api: Option<UsageWindow>Studio / API usage allowance. None when the plan does not expose the
API budget — the official mistral-vibe client only requires
vibe_budget, and some accounts report no api_budget at all.
vibe: UsageWindowVibe Code usage allowance.
api_budget: Option<f64>Monthly API allowance in currency; None when Self::api is.
vibe_budget: f64Monthly Vibe Code allowance in currency.
currency: StringISO 4217 code the two allowances are denominated in.
api_payg: boolPay-as-you-go covers API usage past the included allowance.
vibe_payg: boolPay-as-you-go covers Vibe Code usage past the included allowance.
Trait Implementations§
Source§impl Clone for MistralSnapshot
impl Clone for MistralSnapshot
Source§impl Debug for MistralSnapshot
impl Debug for MistralSnapshot
impl Eq for MistralSnapshot
Source§impl PartialEq for MistralSnapshot
impl PartialEq for MistralSnapshot
impl StructuralPartialEq for MistralSnapshot
Auto Trait Implementations§
impl Forget for MistralSnapshot
impl Freeze for MistralSnapshot
impl RefUnwindSafe for MistralSnapshot
impl Send for MistralSnapshot
impl Sync for MistralSnapshot
impl Unpin for MistralSnapshot
impl UnsafeUnpin for MistralSnapshot
impl UnwindSafe for MistralSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more