use serde::{Deserialize, Serialize};
use serde_json::Value;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct Account {
pub provider: String,
pub plan: Option<String>,
pub limits_available: bool,
pub windows: Vec<Window>,
pub raw: Value,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct Window {
pub id: String,
pub label: String,
pub used_percent: Option<f64>,
pub duration_minutes: Option<u32>,
pub resets_at: Option<String>,
}