pub struct ResourceDescription {
pub resource_usage: Option<HashMap<String, ResourceUsage>>,
pub usage_pct: Option<i32>,
}Fields§
§resource_usage: Option<HashMap<String, ResourceUsage>>§usage_pct: Option<i32>Implementations§
source§impl ResourceDescription
impl ResourceDescription
pub fn new() -> ResourceDescription
Trait Implementations§
source§impl Clone for ResourceDescription
impl Clone for ResourceDescription
source§fn clone(&self) -> ResourceDescription
fn clone(&self) -> ResourceDescription
Returns a copy 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 ResourceDescription
impl Debug for ResourceDescription
source§impl Default for ResourceDescription
impl Default for ResourceDescription
source§fn default() -> ResourceDescription
fn default() -> ResourceDescription
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceDescription
impl<'de> Deserialize<'de> for ResourceDescription
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
source§impl PartialEq for ResourceDescription
impl PartialEq for ResourceDescription
source§fn eq(&self, other: &ResourceDescription) -> bool
fn eq(&self, other: &ResourceDescription) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ResourceDescription
impl Serialize for ResourceDescription
impl StructuralPartialEq for ResourceDescription
Auto Trait Implementations§
impl RefUnwindSafe for ResourceDescription
impl Send for ResourceDescription
impl Sync for ResourceDescription
impl Unpin for ResourceDescription
impl UnwindSafe for ResourceDescription
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