pub struct AnchorEntry {
pub scheme: String,
pub content_hash: ContentHash,
pub uri: Option<String>,
pub extensions: Map<String, Value>,
}Expand description
One entry in Body::anchors / PublishRequest::anchors.
additionalProperties: true per RFC-ACDP-0016 §4: a future
anchor-scheme-specific field is automatically signed under the
RFC-ACDP-0001 §5.7 unknown-field rule without a schema update, so
unknown keys are preserved in Self::extensions rather than
rejected.
Fields§
§scheme: StringDotted-namespace identifier of the external artifact’s system
(e.g. macp.commitment), pattern
^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$ (the same structured-locator
scheme grammar as RFC-ACDP-0002 §6.2). Opaque to core
verification — an unrecognized scheme has zero effect on the
body’s ACDP-level verification verdict (RFC-ACDP-0016 §6).
content_hash: ContentHashThe external artifact’s own content digest
("sha256:" + 64 lowercase hex) — an independent digest,
unrelated to the body’s own content_hash field. This is the
anchor’s genesis identity (RFC-ACDP-0016 §4, §7).
uri: Option<String>Optional locator hint for resolving the artifact. Advisory
only: the binding is content_hash, not uri. MUST NOT be
dereferenced by any ACDP-level verification code path
(RFC-ACDP-0016 §6, NORMATIVE) — no code in this crate reads
this field for anything but (de)serialization.
extensions: Map<String, Value>Forward-compatible passthrough for anchor-scheme-specific
fields not yet known to this crate (RFC-ACDP-0016 §4’s
additionalProperties: true).
Trait Implementations§
Source§impl Clone for AnchorEntry
impl Clone for AnchorEntry
Source§fn clone(&self) -> AnchorEntry
fn clone(&self) -> AnchorEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more