pub struct ArtifactMetadata {
pub artifact_id: String,
pub artifact_type: ArtifactType,
pub size_bytes: u64,
pub sha256: String,
pub url: String,
pub completeness: ArtifactCompleteness,
}Expand description
Descriptor for a single downloadable model artifact.
Fields§
§artifact_id: StringUnique artifact identifier.
artifact_type: ArtifactTypeType of this artifact.
size_bytes: u64Size in bytes.
sha256: StringSHA-256 hex digest of the artifact file.
url: StringDownload URL (HTTPS or ipfs://).
completeness: ArtifactCompletenessCompleteness classification of the full artifact set.
Trait Implementations§
Source§impl Clone for ArtifactMetadata
impl Clone for ArtifactMetadata
Source§fn clone(&self) -> ArtifactMetadata
fn clone(&self) -> ArtifactMetadata
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 moreSource§impl Debug for ArtifactMetadata
impl Debug for ArtifactMetadata
Source§impl Default for ArtifactMetadata
impl Default for ArtifactMetadata
Source§fn default() -> ArtifactMetadata
fn default() -> ArtifactMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArtifactMetadata
impl<'de> Deserialize<'de> for ArtifactMetadata
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 ArtifactMetadata
impl RefUnwindSafe for ArtifactMetadata
impl Send for ArtifactMetadata
impl Sync for ArtifactMetadata
impl Unpin for ArtifactMetadata
impl UnsafeUnpin for ArtifactMetadata
impl UnwindSafe for ArtifactMetadata
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