pub struct ModelEntry {
pub version: ModelVersion,
pub metrics: ModelQualityMetrics,
pub released_at: u64,
pub description: String,
pub artifact_path: String,
pub is_active: bool,
pub rolled_back: bool,
pub rollback_reason: Option<String>,
}Expand description
A versioned model entry.
Fields§
§version: ModelVersionVersion identifier
metrics: ModelQualityMetricsQuality metrics at release
released_at: u64Release timestamp (Unix millis)
description: StringOptional description
artifact_path: StringModel artifact path/identifier
is_active: boolIs this the current active version?
rolled_back: boolWas this version rolled back?
rollback_reason: Option<String>Rollback reason (if applicable)
Implementations§
Source§impl ModelEntry
impl ModelEntry
Sourcepub fn new(
version: ModelVersion,
metrics: ModelQualityMetrics,
description: impl Into<String>,
artifact_path: impl Into<String>,
) -> Self
pub fn new( version: ModelVersion, metrics: ModelQualityMetrics, description: impl Into<String>, artifact_path: impl Into<String>, ) -> Self
Create a new model entry.
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§fn clone(&self) -> ModelEntry
fn clone(&self) -> ModelEntry
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 ModelEntry
impl Debug for ModelEntry
Source§impl<'de> Deserialize<'de> for ModelEntry
impl<'de> Deserialize<'de> for ModelEntry
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 ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnwindSafe for ModelEntry
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