pub struct Metadata {
pub created_at: String,
pub aprender_version: String,
pub model_name: Option<String>,
pub description: Option<String>,
pub training: Option<TrainingInfo>,
pub hyperparameters: HashMap<String, Value>,
pub metrics: HashMap<String, Value>,
pub custom: HashMap<String, Value>,
pub distillation: Option<String>,
pub distillation_info: Option<DistillationInfo>,
pub license: Option<LicenseInfo>,
pub model_card: Option<ModelCard>,
}Expand description
Model metadata (MessagePack-encoded)
Fields§
§created_at: StringCreation timestamp (ISO 8601)
aprender_version: StringAprender version that created this model
model_name: Option<String>Optional model name
description: Option<String>Optional description
training: Option<TrainingInfo>Training information
hyperparameters: HashMap<String, Value>Hyperparameters
metrics: HashMap<String, Value>Model metrics
custom: HashMap<String, Value>Custom user data
distillation: Option<String>Distillation teacher hash (spec §6.3) - simple form
distillation_info: Option<DistillationInfo>Full distillation provenance (spec §6.3.2) - structured form
license: Option<LicenseInfo>Commercial license information (spec §9.1)
model_card: Option<ModelCard>Model card metadata (spec §11)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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 Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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