pub struct Quota {
pub current_value: Option<f64>,
pub id: Option<String>,
pub limit: Option<f64>,
pub name: Option<Name>,
pub unit: Option<String>,
}
Expand description
Describes a quota for or usage details about a resource
Fields§
§current_value: Option<f64>
The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.
id: Option<String>
The resource ID of the quota object
limit: Option<f64>
The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.
name: Option<Name>
The name of the quota
unit: Option<String>
The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quota
impl<'de> Deserialize<'de> for Quota
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
impl StructuralPartialEq for Quota
Auto Trait Implementations§
impl Freeze for Quota
impl RefUnwindSafe for Quota
impl Send for Quota
impl Sync for Quota
impl Unpin for Quota
impl UnwindSafe for Quota
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