pub struct AICapabilities {
pub inference_level: String,
pub training_level: String,
pub recommended_models: Vec<String>,
pub hardware_acceleration: Vec<String>,
}Expand description
AI capabilities assessment
Fields§
§inference_level: StringAI inference capability level
training_level: StringAI training capability level
recommended_models: Vec<String>Recommended model sizes
hardware_acceleration: Vec<String>Hardware acceleration support
Implementations§
Source§impl AICapabilities
impl AICapabilities
Sourcepub fn from_profile(profile: &SystemProfile) -> Self
pub fn from_profile(profile: &SystemProfile) -> Self
Create AI capabilities from system profile
Sourcepub fn inference_level(&self) -> &str
pub fn inference_level(&self) -> &str
Get the inference level
Sourcepub fn training_level(&self) -> &str
pub fn training_level(&self) -> &str
Get the training level
Trait Implementations§
Source§impl Clone for AICapabilities
impl Clone for AICapabilities
Source§fn clone(&self) -> AICapabilities
fn clone(&self) -> AICapabilities
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 AICapabilities
impl Debug for AICapabilities
Source§impl<'de> Deserialize<'de> for AICapabilities
impl<'de> Deserialize<'de> for AICapabilities
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 AICapabilities
impl RefUnwindSafe for AICapabilities
impl Send for AICapabilities
impl Sync for AICapabilities
impl Unpin for AICapabilities
impl UnwindSafe for AICapabilities
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