Struct below_model::system::SystemModel
source · [−]pub struct SystemModel {
pub hostname: String,
pub kernel_version: Option<String>,
pub os_release: Option<String>,
pub stat: ProcStatModel,
pub total_cpu: SingleCpuModel,
pub cpus: Vec<SingleCpuModel>,
pub mem: MemoryModel,
pub vm: VmModel,
pub disks: BTreeMap<String, SingleDiskModel>,
pub btrfs: Option<BTreeMap<String, BtrfsModel>>,
}
Fields
hostname: String
kernel_version: Option<String>
os_release: Option<String>
stat: ProcStatModel
total_cpu: SingleCpuModel
cpus: Vec<SingleCpuModel>
mem: MemoryModel
vm: VmModel
disks: BTreeMap<String, SingleDiskModel>
btrfs: Option<BTreeMap<String, BtrfsModel>>
Implementations
sourceimpl SystemModel
impl SystemModel
pub fn new(
sample: &SystemSample,
last: Option<(&SystemSample, Duration)>
) -> SystemModel
Trait Implementations
sourceimpl Clone for SystemModel
impl Clone for SystemModel
sourcefn clone(&self) -> SystemModel
fn clone(&self) -> SystemModel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SystemModel
impl Debug for SystemModel
sourceimpl Default for SystemModel
impl Default for SystemModel
sourcefn default() -> SystemModel
fn default() -> SystemModel
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SystemModel
impl<'de> Deserialize<'de> for SystemModel
sourcefn 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
sourceimpl PartialEq<SystemModel> for SystemModel
impl PartialEq<SystemModel> for SystemModel
sourcefn eq(&self, other: &SystemModel) -> bool
fn eq(&self, other: &SystemModel) -> bool
sourceimpl Queriable for SystemModel
impl Queriable for SystemModel
sourceimpl Serialize for SystemModel
impl Serialize for SystemModel
impl StructuralPartialEq for SystemModel
Auto Trait Implementations
impl RefUnwindSafe for SystemModel
impl Send for SystemModel
impl Sync for SystemModel
impl Unpin for SystemModel
impl UnwindSafe for SystemModel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more