pub struct AiDomain {
pub models: Option<Vec<AiModel>>,
pub decisions: Option<Vec<AiDecision>>,
pub anomalies: Option<Vec<Anomaly>>,
pub total_inferences: Option<u64>,
pub avg_inference_ms: Option<f64>,
}Expand description
AI domain containing model and decision information.
Fields§
§models: Option<Vec<AiModel>>Active AI models
decisions: Option<Vec<AiDecision>>Recent AI decisions
anomalies: Option<Vec<Anomaly>>Detected anomalies
total_inferences: Option<u64>Total inference count (session)
avg_inference_ms: Option<f64>Average inference latency (ms)
Implementations§
Source§impl AiDomain
impl AiDomain
Sourcepub fn with_model(self, model: AiModel) -> Self
pub fn with_model(self, model: AiModel) -> Self
Add a model.
Sourcepub fn with_decision(self, decision: AiDecision) -> Self
pub fn with_decision(self, decision: AiDecision) -> Self
Add a decision.
Sourcepub fn with_anomaly(self, anomaly: Anomaly) -> Self
pub fn with_anomaly(self, anomaly: Anomaly) -> Self
Add an anomaly.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiDomain
impl<'de> Deserialize<'de> for AiDomain
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 AiDomain
impl RefUnwindSafe for AiDomain
impl Send for AiDomain
impl Sync for AiDomain
impl Unpin for AiDomain
impl UnwindSafe for AiDomain
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