pub struct Usage {
pub id: Option<String>,
pub unit: Option<String>,
pub current_value: Option<i32>,
pub limit: Option<i32>,
pub name: Option<Name>,
}Expand description
A single usage result
Fields§
§id: Option<String>Id of the usage result
unit: Option<String>Unit of the usage result
current_value: Option<i32>The current usage of the resource
limit: Option<i32>The maximum permitted usage of the resource.
name: Option<Name>The name object of the resource
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Usage
impl<'de> Deserialize<'de> for Usage
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 Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnwindSafe for Usage
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