pub type JsonCredential<S = NonEmptyObject> = SpecializedJsonCredential<S>;Expand description
JSON Credential, without required context nor type.
If you care about required context and/or type, or want to customize other
aspects of the credential, use the SpecializedJsonCredential type
directly.
Aliased Type§
pub struct JsonCredential<S = NonEmptyObject> {Show 15 fields
pub context: Context<V2>,
pub id: Option<UriBuf>,
pub name: Option<InternationalString>,
pub description: Option<InternationalString>,
pub types: Types<CredentialType>,
pub credential_subjects: NonEmptyVec<S>,
pub issuer: IdOr<IdentifiedObject>,
pub valid_from: Option<Lexical<DateTimeStamp>>,
pub valid_until: Option<Lexical<DateTimeStamp>>,
pub credential_status: Vec<MaybeIdentifiedTypedObject>,
pub terms_of_use: Vec<MaybeIdentifiedTypedObject>,
pub evidence: Vec<MaybeIdentifiedTypedObject>,
pub credential_schema: Vec<IdentifiedTypedObject>,
pub refresh_services: Vec<TypedObject>,
pub extra_properties: BTreeMap<String, Value>,
}Fields§
§context: Context<V2>JSON-LD context.
id: Option<UriBuf>Credential identifier.
name: Option<InternationalString>Name.
description: Option<InternationalString>Credential description.
types: Types<CredentialType>Credential type.
credential_subjects: NonEmptyVec<S>Credential subjects.
issuer: IdOr<IdentifiedObject>Issuer.
valid_from: Option<Lexical<DateTimeStamp>>Issuance date.
valid_until: Option<Lexical<DateTimeStamp>>Expiration date.
credential_status: Vec<MaybeIdentifiedTypedObject>Credential status.
terms_of_use: Vec<MaybeIdentifiedTypedObject>Terms of use.
evidence: Vec<MaybeIdentifiedTypedObject>Evidence.
credential_schema: Vec<IdentifiedTypedObject>§refresh_services: Vec<TypedObject>§extra_properties: BTreeMap<String, Value>