pub struct QuotaStatus {
pub namespace: String,
pub config: QuotaConfig,
pub usage: QuotaUsage,
pub vector_usage_percent: Option<f32>,
pub storage_usage_percent: Option<f32>,
pub is_exceeded: bool,
pub exceeded_quotas: Vec<String>,
}Expand description
Combined quota status showing config and current usage
Fields§
§namespace: StringNamespace name
config: QuotaConfigQuota configuration
usage: QuotaUsageCurrent usage
vector_usage_percent: Option<f32>Percentage of vector quota used (0-100, None if unlimited)
storage_usage_percent: Option<f32>Percentage of storage quota used (0-100, None if unlimited)
is_exceeded: boolWhether any quota is exceeded
exceeded_quotas: Vec<String>List of exceeded quota types
Implementations§
Source§impl QuotaStatus
impl QuotaStatus
Sourcepub fn new(namespace: String, config: QuotaConfig, usage: QuotaUsage) -> Self
pub fn new(namespace: String, config: QuotaConfig, usage: QuotaUsage) -> Self
Create a new quota status from config and usage
Trait Implementations§
Source§impl Clone for QuotaStatus
impl Clone for QuotaStatus
Source§fn clone(&self) -> QuotaStatus
fn clone(&self) -> QuotaStatus
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 moreSource§impl Debug for QuotaStatus
impl Debug for QuotaStatus
Source§impl<'de> Deserialize<'de> for QuotaStatus
impl<'de> Deserialize<'de> for QuotaStatus
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 QuotaStatus
impl RefUnwindSafe for QuotaStatus
impl Send for QuotaStatus
impl Sync for QuotaStatus
impl Unpin for QuotaStatus
impl UnsafeUnpin for QuotaStatus
impl UnwindSafe for QuotaStatus
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