pub struct GitMarkEnvelope {
pub id: String,
pub genesis: String,
pub nick: String,
pub package: String,
pub repository: String,
}Expand description
The on-disk gitmark.json envelope — the Carvalho-lineage substrate
shape (ADR-124, C7), verified byte-for-byte against
microfed/gitmark.json.
Exactly five keys: @id, genesis, nick, package, repository.
@context/@type/commit/parent are deliberately ABSENT — they are
not in the ground-truth file (parent-linkage lives in blocktrails.json
states[]/txo[], not here). For byte-parity with create-agent, emit
only these five keys.
@id is gitmark:<commit_sha>:<vout>; genesis is
gitmark:<first-commit-sha>:0 (and equals @id for the first mark).
This is a projection of the internal GitMark — the in-memory
{commit_sha, repo, branch, parent} shape (used by the PROV-O sidecar +
the composition log) is unchanged; only the on-disk substrate file
adopts this shape.
Fields§
§id: Stringgitmark:<commit_sha>:<vout> — the single-use-seal coordinate.
genesis: Stringgitmark:<first-commit-sha>:0 — the trail’s genesis seal.
nick: StringShort human name for the mark (e.g. the package/pod nickname).
package: StringPod-relative package path (e.g. ./package.json).
repository: StringRepo-relative root (e.g. ./).
Trait Implementations§
Source§impl Clone for GitMarkEnvelope
impl Clone for GitMarkEnvelope
Source§fn clone(&self) -> GitMarkEnvelope
fn clone(&self) -> GitMarkEnvelope
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 GitMarkEnvelope
impl Debug for GitMarkEnvelope
Source§impl<'de> Deserialize<'de> for GitMarkEnvelope
impl<'de> Deserialize<'de> for GitMarkEnvelope
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 GitMarkEnvelope
Source§impl PartialEq for GitMarkEnvelope
impl PartialEq for GitMarkEnvelope
Source§fn eq(&self, other: &GitMarkEnvelope) -> bool
fn eq(&self, other: &GitMarkEnvelope) -> bool
self and other values to be equal, and is used by ==.