pub struct CredentialSubjectStatement {
pub id: String,
pub predicate: String,
pub object: StatementObject,
pub witness_context: Option<WitnessContext>,
pub extra: Map<String, Value>,
}Expand description
Verifiable Statement Credential subject.
Fields§
§id: StringDID of the node the statement is about.
predicate: StringThe absolute IRI fixing the statement’s meaning. See check_predicate_iri.
object: StatementObjectWhat the statement says about the subject.
witness_context: Option<WitnessContext>Context of the witnessing event — the OPTIONAL additional member of WITNESSED_V1.
Modelled because the v1 context defines it and the core profile names it. Carried
through a round trip on any statement, and meaningful under witnessed/1 only.
extra: Map<String, Value>Members a profile adds that this library does not model, preserved verbatim.
A verifier MUST ignore additional members a profile does not define, so that a profile can add optional ones without invalidating credentials for older verifiers. They are kept rather than dropped so that a digest over a parsed statement agrees with the one over its wire form.