pub struct Artifact {Show 21 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 disclosure: ArtifactDisclosure,
pub locator_integrity: LocatorIntegrity,
pub availability: ArtifactAvailability,
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,
}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.
disclosure: ArtifactDisclosureIndependent disclosure axis. Missing on legacy artifacts means
unknown, never silently public.
locator_integrity: LocatorIntegrityLocator mutability is independent from storage and disclosure.
availability: ArtifactAvailabilityObserved availability is independent from locator integrity.
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.
Implementations§
Source§impl Artifact
impl Artifact
pub fn content_address( kind: &str, name: &str, content_hash: &str, source_url: Option<&str>, locator: Option<&str>, ) -> String
Sourcepub fn content_address_with_axes(
kind: &str,
name: &str,
content_hash: &str,
source_url: Option<&str>,
locator: Option<&str>,
disclosure: ArtifactDisclosure,
locator_integrity: LocatorIntegrity,
availability: ArtifactAvailability,
) -> String
pub fn content_address_with_axes( kind: &str, name: &str, content_hash: &str, source_url: Option<&str>, locator: Option<&str>, disclosure: ArtifactDisclosure, locator_integrity: LocatorIntegrity, availability: ArtifactAvailability, ) -> String
Content-address a descriptor that opts into the independent reference axes. The all-unknown shape deliberately delegates to the legacy preimage so existing artifact IDs remain stable.
Sourcepub fn validate_reference_axes(&self) -> Result<(), String>
pub fn validate_reference_axes(&self) -> Result<(), String>
Fail-closed validation for descriptors crossing the receipt write edge. Restricted bytes use an opaque custodian locator in the first safe implementation; no public equality digest is emitted until a separately reviewed sealed-commitment scheme exists.