pub struct AssistantUsageQuotaSnapshot {
pub entitlement_requests: f64,
pub is_unlimited_entitlement: bool,
pub overage: f64,
pub overage_allowed_with_exhausted_quota: bool,
pub remaining_percentage: f64,
pub reset_date: Option<String>,
pub usage_allowed_with_exhausted_quota: bool,
pub used_requests: f64,
}Fields§
§entitlement_requests: f64Total requests allowed by the entitlement
is_unlimited_entitlement: boolWhether the user has an unlimited usage entitlement
overage: f64Number of requests over the entitlement limit
overage_allowed_with_exhausted_quota: boolWhether overage is allowed when quota is exhausted
remaining_percentage: f64Percentage of quota remaining (0.0 to 1.0)
reset_date: Option<String>Date when the quota resets
usage_allowed_with_exhausted_quota: boolWhether usage is still permitted after quota exhaustion
used_requests: f64Number of requests already consumed
Trait Implementations§
Source§impl Clone for AssistantUsageQuotaSnapshot
impl Clone for AssistantUsageQuotaSnapshot
Source§fn clone(&self) -> AssistantUsageQuotaSnapshot
fn clone(&self) -> AssistantUsageQuotaSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantUsageQuotaSnapshot
impl Debug for AssistantUsageQuotaSnapshot
Source§impl<'de> Deserialize<'de> for AssistantUsageQuotaSnapshot
impl<'de> Deserialize<'de> for AssistantUsageQuotaSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssistantUsageQuotaSnapshot
impl RefUnwindSafe for AssistantUsageQuotaSnapshot
impl Send for AssistantUsageQuotaSnapshot
impl Sync for AssistantUsageQuotaSnapshot
impl Unpin for AssistantUsageQuotaSnapshot
impl UnsafeUnpin for AssistantUsageQuotaSnapshot
impl UnwindSafe for AssistantUsageQuotaSnapshot
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