pub struct RepoTrail {
pub doc: Value,
pub branch: String,
pub chain: String,
pub pubkey_base: String,
pub marks: Vec<RepoMark>,
}Expand description
A git-mark trail committed to a repository, read and re-derived.
Fields§
§doc: ValueThe committed document, as parsed.
branch: StringThe branch it was read from.
chain: StringThe chain token the marks live on.
pubkey_base: StringThe base key as a full compressed point (02/03 plus x).
marks: Vec<RepoMark>The marks, one per well-formed commit in states.
Implementations§
Source§impl RepoTrail
impl RepoTrail
Sourcepub fn xonly(&self) -> String
pub fn xonly(&self) -> String
The base key’s x-only form (64 lowercase hex), which is the agent’s
did:nostr public key.
Sourcepub fn anchor_facts(&self, trail_url: &str) -> Option<AnchorFacts>
pub fn anchor_facts(&self, trail_url: &str) -> Option<AnchorFacts>
The anchor facts for the NIP-34 events, or None while no mark has an
on-chain output. trail_url is where the forge serves the document.
Sourcepub fn document_json(&self) -> String
pub fn document_json(&self) -> String
The trail document as the hosted verifier wants it: pretty-printed JSON.
Trait Implementations§
impl StructuralPartialEq for RepoTrail
Auto Trait Implementations§
impl Freeze for RepoTrail
impl RefUnwindSafe for RepoTrail
impl Send for RepoTrail
impl Sync for RepoTrail
impl Unpin for RepoTrail
impl UnsafeUnpin for RepoTrail
impl UnwindSafe for RepoTrail
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