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: artifact adapters own the digest domain, Model identity, and revision extraction. Callers cannot manufacture a reference by implementing a permissive metadata interface.
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.