pub struct ModelVersioningManager { /* private fields */ }Implementations§
Source§impl ModelVersioningManager
impl ModelVersioningManager
pub fn new(storage_root: PathBuf) -> Result<Self>
pub fn create_version( &mut self, model_name: String, model_data: &[u8], description: String, created_by: String, tags: Vec<String>, training_config: TrainingConfig, performance_metrics: PerformanceMetrics, metadata: HashMap<String, String>, ) -> Result<ModelVersion>
pub fn get_version( &self, model_name: &str, version_id: &str, ) -> Option<&ModelVersion>
pub fn get_latest_version(&self, model_name: &str) -> Option<&ModelVersion>
pub fn list_versions(&self, model_name: &str) -> Vec<&ModelVersion>
pub fn list_models(&self) -> Vec<String>
pub fn update_status( &mut self, model_name: &str, version_id: &str, status: ModelStatus, ) -> Result<()>
pub fn add_tag( &mut self, model_name: &str, version_id: &str, tag: String, ) -> Result<()>
pub fn remove_tag( &mut self, model_name: &str, version_id: &str, tag: &str, ) -> Result<()>
pub fn find_versions_by_tag(&self, tag: &str) -> Vec<&ModelVersion>
pub fn find_versions_by_performance( &self, metric_name: &str, min_value: f32, max_value: Option<f32>, ) -> Vec<&ModelVersion>
pub fn delete_version( &mut self, model_name: &str, version_id: &str, ) -> Result<()>
pub fn load_model_data( &self, model_name: &str, version_id: &str, ) -> Result<Vec<u8>>
pub fn get_version_lineage( &self, model_name: &str, version_id: &str, ) -> Vec<&ModelVersion>
pub fn compare_versions( &self, model_name: &str, version_id1: &str, version_id2: &str, ) -> Result<VersionComparison>
pub fn get_statistics(&self) -> ModelRegistryStatistics
Auto Trait Implementations§
impl Freeze for ModelVersioningManager
impl RefUnwindSafe for ModelVersioningManager
impl Send for ModelVersioningManager
impl Sync for ModelVersioningManager
impl Unpin for ModelVersioningManager
impl UnsafeUnpin for ModelVersioningManager
impl UnwindSafe for ModelVersioningManager
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> 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