pub struct SysCap {
pub key: String,
pub category: String,
pub name: String,
pub display_name: String,
pub present: bool,
pub version: Option<String>,
pub amount: Option<f64>,
pub amount_dimension: Option<String>,
pub details: Option<String>,
pub cache_ttl_secs: u64,
pub fetched_at_secs: i64,
}Expand description
Individual system capability
Fields§
§key: String§category: String§name: String§display_name: String§present: bool§version: Option<String>§amount: Option<f64>§amount_dimension: Option<String>§details: Option<String>§cache_ttl_secs: u64Cache TTL in seconds - how long this capability data is valid
fetched_at_secs: i64When this capability was last fetched (Unix timestamp in seconds)
Trait Implementations§
impl StructuralPartialEq for SysCap
Auto Trait Implementations§
impl Freeze for SysCap
impl RefUnwindSafe for SysCap
impl Send for SysCap
impl Sync for SysCap
impl Unpin for SysCap
impl UnsafeUnpin for SysCap
impl UnwindSafe for SysCap
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