pub struct Artifact {Show 18 fields
pub id: String,
pub kind: String,
pub name: String,
pub content_hash: String,
pub size_bytes: Option<u64>,
pub media_type: Option<String>,
pub storage_mode: String,
pub locator: Option<String>,
pub source_url: Option<String>,
pub license: Option<String>,
pub target_findings: Vec<String>,
pub source_id: Option<String>,
pub provenance: Provenance,
pub metadata: BTreeMap<String, Value>,
pub review_state: Option<ReviewState>,
pub retracted: bool,
pub access_tier: AccessTier,
pub created: String,
}Expand description
Generic content-addressed artifact.
This is the common substrate object for records and files that are not
only papers: trial registry snapshots, protocols, supplements, notebooks,
tables, figures, model outputs, lab files, and dataset manifests. Typed
objects such as Dataset and CodeArtifact still exist because they
carry stronger domain-specific fields. Artifact gives every byte or
pointer the same minimum durability contract.
Fields§
§id: Stringva_<16hex>, content-addressed over kind, name, hash, source, and
locator.
kind: StringOne of VALID_ARTIFACT_KINDS.
name: StringHuman-readable label.
content_hash: StringSHA-256 commitment. Convention: sha256:<64hex>.
size_bytes: Option<u64>Byte count when known.
media_type: Option<String>MIME type or close equivalent.
storage_mode: Stringlocal_blob, local_file, remote, or pointer.
locator: Option<String>Local relative path, file path, HTTPS URL, S3 URL, or registry locator.
source_url: Option<String>Original upstream URL or accession, distinct from a mirrored blob path.
license: Option<String>License identifier, URL, or access terms note.
target_findings: Vec<String>Findings this artifact directly bears on.
source_id: Option<String>Pointer to the source record that described this artifact, if one
already exists in sources.
provenance: ProvenanceArtifact-level provenance. The source record may be a registry, repository, dataset portal, protocol page, or paper.
metadata: BTreeMap<String, Value>Structured adapter metadata such as NCT id, outcomes, accession ids, version tags, or retrieval timestamps.
review_state: Option<ReviewState>Review lifecycle for the artifact itself.
retracted: bool§access_tier: AccessTier§created: StringRFC 3339 creation timestamp.