pub struct ArtifactRef {Show 14 fields
pub artifact_id: ArtifactId,
pub version: ArtifactVersion,
pub scope: ContentScope,
pub storage_ref: AdapterRef,
pub mime: Option<String>,
pub size_bytes: Option<u64>,
pub content_hash: Option<String>,
pub producer_ref: EntityRef,
pub source_ref: SourceRef,
pub destination_ref: Option<DestinationRef>,
pub privacy_class: PrivacyClass,
pub retention_class: RetentionClass,
pub trust_class: TrustClass,
pub redacted_summary: String,
}Expand description
Carries the artifact ref record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§artifact_id: ArtifactIdStable artifact id used for typed lineage, lookup, or dedupe.
version: ArtifactVersionVersion string for this capability, package, or protocol surface. Use it for compatibility checks during package or adapter resolution.
scope: ContentScopeScope used by this record or request.
storage_ref: AdapterRefTyped storage ref reference. Resolving or executing it is a separate policy-gated step.
mime: Option<String>Optional mime value. When absent, callers should use the documented default or skip that optional behavior.
size_bytes: Option<u64>size bytes used for bounds checks, summaries, or truncation evidence.
content_hash: Option<String>Stable hash for the bytes or canonical payload used for stale checks and fingerprints.
producer_ref: EntityRefTyped producer ref reference. Resolving or executing it is a separate policy-gated step.
source_ref: SourceRefTyped source reference that records where this item originated.
destination_ref: Option<DestinationRef>Typed destination reference that records where this item is being sent or projected.
privacy_class: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
retention_class: RetentionClassRetention class used by hosts and sinks when storing or exporting this item.
trust_class: TrustClassTrust class used when deciding whether context or capabilities may be admitted.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl ArtifactRef
impl ArtifactRef
Sourcepub fn new(
artifact_id: ArtifactId,
version: ArtifactVersion,
scope: ContentScope,
storage_ref: AdapterRef,
producer_ref: EntityRef,
source_ref: SourceRef,
redacted_summary: impl Into<String>,
) -> Self
pub fn new( artifact_id: ArtifactId, version: ArtifactVersion, scope: ContentScope, storage_ref: AdapterRef, producer_ref: EntityRef, source_ref: SourceRef, redacted_summary: impl Into<String>, ) -> Self
Creates a new records::content value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Trait Implementations§
Source§impl Clone for ArtifactRef
impl Clone for ArtifactRef
Source§fn clone(&self) -> ArtifactRef
fn clone(&self) -> ArtifactRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArtifactRef
impl Debug for ArtifactRef
Source§impl<'de> Deserialize<'de> for ArtifactRef
impl<'de> Deserialize<'de> for ArtifactRef
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>,
impl Eq for ArtifactRef
Source§impl PartialEq for ArtifactRef
impl PartialEq for ArtifactRef
Source§fn eq(&self, other: &ArtifactRef) -> bool
fn eq(&self, other: &ArtifactRef) -> bool
self and other values to be equal, and is used by ==.