pub struct AiModel {
pub model_id: Option<String>,
pub name: Option<String>,
pub model_type: Option<ModelType>,
pub version: Option<String>,
pub framework: Option<String>,
pub device: Option<InferenceDevice>,
pub is_loaded: Option<bool>,
pub inference_count: Option<u64>,
pub avg_inference_ms: Option<f64>,
pub last_inference: Option<DateTime<Utc>>,
pub accuracy: Option<f64>,
pub memory_bytes: Option<u64>,
}Expand description
AI model information.
Fields§
§model_id: Option<String>Model ID
name: Option<String>Model name
model_type: Option<ModelType>Model type
version: Option<String>Model version
framework: Option<String>Framework (pytorch, tensorflow, onnx, etc.)
device: Option<InferenceDevice>Inference device
is_loaded: Option<bool>Whether model is loaded
inference_count: Option<u64>Inference count (session)
avg_inference_ms: Option<f64>Average inference time (ms)
last_inference: Option<DateTime<Utc>>Last inference time
accuracy: Option<f64>Model accuracy (if tracked)
memory_bytes: Option<u64>Memory usage (bytes)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiModel
impl<'de> Deserialize<'de> for AiModel
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 AiModel
impl RefUnwindSafe for AiModel
impl Send for AiModel
impl Sync for AiModel
impl Unpin for AiModel
impl UnwindSafe for AiModel
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