pub struct SystemProfile {
pub cpu_score: f64,
pub gpu_score: f64,
pub memory_score: f64,
pub storage_score: f64,
pub network_score: f64,
pub overall_score: f64,
pub system_info: SystemInfo,
pub created_at: DateTime<Utc>,
}Expand description
Represents a complete system profile with all capability scores
Fields§
§cpu_score: f64CPU performance score (0-10)
gpu_score: f64GPU performance score (0-10)
memory_score: f64Memory performance score (0-10)
storage_score: f64Storage performance score (0-10)
network_score: f64Network performance score (0-10)
overall_score: f64Overall system score (0-10)
system_info: SystemInfoDetailed system information
created_at: DateTime<Utc>Timestamp when profile was created
Implementations§
Source§impl SystemProfile
impl SystemProfile
Sourcepub fn new(
cpu_score: f64,
gpu_score: f64,
memory_score: f64,
storage_score: f64,
network_score: f64,
system_info: SystemInfo,
) -> Self
pub fn new( cpu_score: f64, gpu_score: f64, memory_score: f64, storage_score: f64, network_score: f64, system_info: SystemInfo, ) -> Self
Create a new system profile
Sourcepub fn memory_score(&self) -> f64
pub fn memory_score(&self) -> f64
Get the memory score
Sourcepub fn storage_score(&self) -> f64
pub fn storage_score(&self) -> f64
Get the storage score
Sourcepub fn network_score(&self) -> f64
pub fn network_score(&self) -> f64
Get the network score
Sourcepub fn overall_score(&self) -> f64
pub fn overall_score(&self) -> f64
Get the overall score
Sourcepub fn ai_capabilities(&self) -> AICapabilities
pub fn ai_capabilities(&self) -> AICapabilities
Get AI capabilities assessment
Trait Implementations§
Source§impl Clone for SystemProfile
impl Clone for SystemProfile
Source§fn clone(&self) -> SystemProfile
fn clone(&self) -> SystemProfile
Returns a duplicate 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 SystemProfile
impl Debug for SystemProfile
Source§impl<'de> Deserialize<'de> for SystemProfile
impl<'de> Deserialize<'de> for SystemProfile
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
Auto Trait Implementations§
impl Freeze for SystemProfile
impl RefUnwindSafe for SystemProfile
impl Send for SystemProfile
impl Sync for SystemProfile
impl Unpin for SystemProfile
impl UnwindSafe for SystemProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more