pub struct ActClassification {
pub vocabularies: Vec<VocabularyRef>,
pub labels: Vec<ActLabel>,
}Expand description
What a sender says an act MEANS, against vocabularies both parties can resolve independently (RFC 0006).
§What this proves, and what it does not
It proves WHICH VOCABULARY THE SENDER CITED, inside the signature. It does NOT prove the sender classified correctly: a sender can label a funds transfer as a scheduling proposal and sign it. What the binding buys is that a DISAGREEMENT becomes visible where a MISUNDERSTANDING was invisible — two parties now mean the same thing by a word, and a recipient can check the claim against the payload it accompanies. That is worth having, it is not integrity of classification, and no caller should present it as the latter.
Fields§
§vocabularies: Vec<VocabularyRef>Every vocabulary the verdict depended on, in fold order.
A LIST because an overlay is a separate published artifact with its own digest: a classifier that ran against a base and a tightening overlay was produced by TWO artifacts, and naming only one would put a false statement inside a signature.
NON-EMPTY, refused at parse: labels resolve against the vocabularies that define them, so a claim citing nothing is labels nobody can look up — meaningless rather than merely sparse. The independent TypeScript implementation refused this from its first draft; this constraint is what keeps the reference from silently accepting bytes it refuses.
labels: Vec<ActLabel>The family-qualified labels this act carries.
A LIST because one act carries verdicts from several families at once — what kind of act it is, how reversible, how wide its blast radius, what routing it implies. Carrying one would discard the verdicts a recipient’s policy most wants.
Trait Implementations§
Source§impl Clone for ActClassification
impl Clone for ActClassification
Source§fn clone(&self) -> ActClassification
fn clone(&self) -> ActClassification
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more