pub type JsonCredential<S = Object> = 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 = Object> {Show 13 fields
pub context: Context<V1>,
pub id: Option<UriBuf>,
pub types: Types<CredentialType>,
pub credential_subjects: NonEmptyVec<S>,
pub issuer: IdOr<IdentifiedObject>,
pub issuance_date: Option<Lexical<DateTime>>,
pub expiration_date: Option<Lexical<DateTime>>,
pub credential_status: Vec<IdentifiedTypedObject>,
pub terms_of_use: Vec<MaybeIdentifiedTypedObject>,
pub evidence: Vec<MaybeIdentifiedTypedObject>,
pub credential_schema: Vec<IdentifiedTypedObject>,
pub refresh_services: Vec<IdentifiedTypedObject>,
pub additional_properties: BTreeMap<String, Value>,
}Fields§
§context: Context<V1>JSON-LD context.
id: Option<UriBuf>Credential identifier.
types: Types<CredentialType>Credential type.
credential_subjects: NonEmptyVec<S>Credential subjects.
issuer: IdOr<IdentifiedObject>Issuer.
issuance_date: Option<Lexical<DateTime>>Issuance date.
This property is required for validation.
expiration_date: Option<Lexical<DateTime>>Expiration date.
credential_status: Vec<IdentifiedTypedObject>Credential status.
terms_of_use: Vec<MaybeIdentifiedTypedObject>Terms of use.
evidence: Vec<MaybeIdentifiedTypedObject>Evidence.
credential_schema: Vec<IdentifiedTypedObject>§refresh_services: Vec<IdentifiedTypedObject>§additional_properties: BTreeMap<String, Value>