pub struct ModelVersion {
pub model: String,
pub version: u32,
pub weights_blob: Vec<u8>,
pub hyperparams_json: String,
pub metrics_json: String,
pub training_data_hash: Option<String>,
pub training_sql: Option<String>,
pub parent_version: Option<u32>,
pub created_at_ms: u64,
pub created_by: Option<String>,
pub archived: bool,
}Expand description
Snapshot of a single model version.
The weights_blob and metrics_json / hyperparams_json are
opaque to the registry — the caller decides encoding. SHA-256
fingerprints let callers detect drift / corruption without
re-materialising the full blob.
Fields§
§model: String§version: u32§weights_blob: Vec<u8>§hyperparams_json: String§metrics_json: String§training_data_hash: Option<String>SHA-256 of the training dataset’s bytes — reproducibility check.
training_sql: Option<String>Raw SQL used to produce the training dataset.
parent_version: Option<u32>Some(n) when this version was fine-tuned from version n.
created_at_ms: u64Epoch millis.
created_by: Option<String>Free-form caller identifier (user name, session id, etc.).
archived: boolImplementations§
Trait Implementations§
Source§impl Clone for ModelVersion
impl Clone for ModelVersion
Source§fn clone(&self) -> ModelVersion
fn clone(&self) -> ModelVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelVersion
impl RefUnwindSafe for ModelVersion
impl Send for ModelVersion
impl Sync for ModelVersion
impl Unpin for ModelVersion
impl UnsafeUnpin for ModelVersion
impl UnwindSafe for ModelVersion
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request