pub struct CopilotUserResponseQuotaSnapshotsPremiumInteractions {
pub entitlement: Option<f64>,
pub has_quota: Option<bool>,
pub overage_count: Option<f64>,
pub overage_permitted: Option<bool>,
pub percent_remaining: Option<f64>,
pub quota_id: Option<String>,
pub quota_remaining: Option<f64>,
pub quota_reset_at: Option<f64>,
pub remaining: Option<f64>,
pub timestamp_utc: Option<String>,
pub token_based_billing: Option<bool>,
pub unlimited: Option<bool>,
}Expand description
Premium-interactions quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§entitlement: Option<f64>Number of requests/units included in the entitlement for this period; -1 denotes an unlimited entitlement.
has_quota: Option<bool>Whether the user currently has quota available; when false and not unlimited, further requests are blocked until the quota resets.
overage_count: Option<f64>Count of additional pay-per-request usage consumed this period beyond the entitlement.
overage_permitted: Option<bool>Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
percent_remaining: Option<f64>Percentage of the entitlement remaining at the snapshot timestamp.
quota_id: Option<String>Identifier of the quota bucket this snapshot describes.
quota_remaining: Option<f64>Amount of quota remaining at the snapshot timestamp.
quota_reset_at: Option<f64>Unix epoch time, in seconds, when this quota next resets.
remaining: Option<f64>Remaining entitlement/quota amount at the snapshot timestamp.
timestamp_utc: Option<String>UTC timestamp when this snapshot was captured.
token_based_billing: Option<bool>Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
unlimited: Option<bool>Whether the entitlement for this category is unlimited.
Trait Implementations§
Source§impl Clone for CopilotUserResponseQuotaSnapshotsPremiumInteractions
impl Clone for CopilotUserResponseQuotaSnapshotsPremiumInteractions
Source§fn clone(&self) -> CopilotUserResponseQuotaSnapshotsPremiumInteractions
fn clone(&self) -> CopilotUserResponseQuotaSnapshotsPremiumInteractions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more