pub struct ForecastData {
pub next_30_days_tokens: u64,
pub next_30_days_cost: f64,
pub monthly_cost_estimate: f64,
pub confidence: f64,
pub trend_direction: TrendDirection,
pub unavailable_reason: Option<String>,
}Expand description
Forecast data with predictions
Fields§
§next_30_days_tokens: u64Predicted tokens for next 30 days
next_30_days_cost: f64Predicted cost for next 30 days
monthly_cost_estimate: f64Monthly cost estimate (extrapolated)
confidence: f64Confidence (R² coefficient, 0.0-1.0)
trend_direction: TrendDirectionTrend direction
Reason if unavailable
Implementations§
Source§impl ForecastData
impl ForecastData
Create unavailable forecast with reason
Trait Implementations§
Source§impl Clone for ForecastData
impl Clone for ForecastData
Source§fn clone(&self) -> ForecastData
fn clone(&self) -> ForecastData
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 ForecastData
impl RefUnwindSafe for ForecastData
impl Send for ForecastData
impl Sync for ForecastData
impl Unpin for ForecastData
impl UnsafeUnpin for ForecastData
impl UnwindSafe for ForecastData
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