Trait CanonicalModelArtifact
pub trait CanonicalModelArtifact: Sealed {
// Required method
fn artifact_reference(&self) -> Result<ModelArtifactReference, Diagnostic>;
}Description
One canonical current Model artifact that can yield a closed identity reference.
The trait is sealed, so only artifact adapters extract the digest domain, Model identity, and revision. Callers cannot create a reference by implementing the trait for arbitrary metadata.
Required Methods§
fn artifact_reference(&self) -> Result<ModelArtifactReference, Diagnostic>
fn artifact_reference(&self) -> Result<ModelArtifactReference, Diagnostic>
Construct the exact typed reference for this artifact.
§Errors
Returns EQ0901 only when validated artifact state cannot be decoded.