pub struct ProvenanceMark {
pub resource: String,
pub git: GitMark,
pub anchor: Option<BlockTrailAnchor>,
pub agent_did: String,
pub created: u64,
}Expand description
A provenance mark over a pod resource write.
Always carries a git commit (GitMark); optionally upgraded with a
Bitcoin block-trail anchor (BlockTrailAnchor) for high-value records.
Fields§
§resource: StringPod-relative path of the resource the write targeted.
git: GitMarkThe git commit the write produced — always present (cheap tier).
anchor: Option<BlockTrailAnchor>Optional Bitcoin block-trail anchor — opt-in (expensive tier).
agent_did: Stringdid:nostr of the writer (NIP-98 authenticated principal), or an
anonymous marker when the write was unauthenticated.
created: u64Unix seconds at which the mark was produced.
Trait Implementations§
Source§impl Clone for ProvenanceMark
impl Clone for ProvenanceMark
Source§fn clone(&self) -> ProvenanceMark
fn clone(&self) -> ProvenanceMark
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProvenanceMark
impl Debug for ProvenanceMark
Source§impl<'de> Deserialize<'de> for ProvenanceMark
impl<'de> Deserialize<'de> for ProvenanceMark
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProvenanceMark
Source§impl PartialEq for ProvenanceMark
impl PartialEq for ProvenanceMark
Source§fn eq(&self, other: &ProvenanceMark) -> bool
fn eq(&self, other: &ProvenanceMark) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProvenanceMark
impl Serialize for ProvenanceMark
impl StructuralPartialEq for ProvenanceMark
Auto Trait Implementations§
impl Freeze for ProvenanceMark
impl RefUnwindSafe for ProvenanceMark
impl Send for ProvenanceMark
impl Sync for ProvenanceMark
impl Unpin for ProvenanceMark
impl UnsafeUnpin for ProvenanceMark
impl UnwindSafe for ProvenanceMark
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more