pub struct WriteRecord<'a> {
pub repo: &'a Path,
pub path: &'a str,
pub agent_did: &'a str,
pub message: &'a str,
pub policy: AnchorPolicy,
pub high_value: bool,
pub ticker: &'a str,
pub network: &'a str,
pub created: u64,
}Expand description
Descriptor of a single pod write passed to ProvenanceLog::record.
Borrowed (no allocation on the hot path), mirroring
crate::wac::conditions::RequestContext. Bundles the write identity
(repo/path/agent/message), the expensive-tier AnchorPolicy + its
high_value flag, and the trail coordinates (ticker/network) an anchor
targets. The trail fields are ignored unless the policy actually anchors.
Fields§
§repo: &'a PathAbsolute filesystem path to the (non-bare) pod repo.
path: &'a strRepo-relative path of the resource written.
agent_did: &'a strdid:nostr of the writer (NIP-98 principal), or an anonymous marker.
message: &'a strCommit subject (the LDP method + path).
policy: AnchorPolicyExpensive-tier policy (see AnchorPolicy).
high_value: boolWhether the resource is flagged high-value (ACL ProvenanceAnchor).
ticker: &'a strTrail ticker to anchor against (used only when anchoring).
network: &'a strBitcoin network of the trail (used only when anchoring).
created: u64Unix seconds stamped onto the produced mark.
Trait Implementations§
Source§impl<'a> Clone for WriteRecord<'a>
impl<'a> Clone for WriteRecord<'a>
Source§fn clone(&self) -> WriteRecord<'a>
fn clone(&self) -> WriteRecord<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more