#[repr(u16)]pub enum DocSubcode {
Show 14 variants
Subject = 801,
IssuerRegistry = 802,
Policy = 803,
Claim = 804,
Revocation = 805,
ProofLog = 806,
IdentityRoot = 800,
EligibilityAttestation = 807,
AcademicTranscript = 810,
Diploma = 811,
EnrollmentVerification = 812,
ProfessionalLicense = 813,
GovernmentId = 814,
Employment = 815,
}Expand description
DocClass subcode identifying the credential/claim type. Range 800-899 is reserved for DocClass family.
Variants§
Subject = 801
801: Subject (DID-equivalent) - key binding, controllers
IssuerRegistry = 802
802: Issuer Registry entry
Policy = 803
803: Policy Token
Claim = 804
804: Claim Token
Revocation = 805
805: Revocation entry
ProofLog = 806
806: Proof verification log
IdentityRoot = 800
800: Identity Root (legacy, maps to Subject)
EligibilityAttestation = 807
807: Eligibility Attestation (claim type)
AcademicTranscript = 810
810: Academic Transcript Credential
Diploma = 811
811: Diploma / Degree Credential
EnrollmentVerification = 812
812: Enrollment Verification
ProfessionalLicense = 813
813: Professional License / Certification
GovernmentId = 814
814: Government ID verification
Employment = 815
815: Employment verification
Implementations§
Source§impl DocSubcode
impl DocSubcode
Sourcepub fn is_core_standard(&self) -> bool
pub fn is_core_standard(&self) -> bool
Check if this is an SRC-80X core standard (800-809)
Sourcepub fn is_identity_class(&self) -> bool
pub fn is_identity_class(&self) -> bool
Check if this is an SRC-80X (Identity/Civil) subcode (legacy alias)
Sourcepub fn is_domain_claim(&self) -> bool
pub fn is_domain_claim(&self) -> bool
Check if this is an SRC-81X (Domain-specific claim) subcode
Sourcepub fn is_academic_class(&self) -> bool
pub fn is_academic_class(&self) -> bool
Check if this is an SRC-81X (Academic/Professional) subcode (legacy alias)
Sourcepub fn to_claim_type(&self) -> Option<ClaimType>
pub fn to_claim_type(&self) -> Option<ClaimType>
Convert to ClaimType for policy matching
Trait Implementations§
Source§impl Clone for DocSubcode
impl Clone for DocSubcode
Source§fn clone(&self) -> DocSubcode
fn clone(&self) -> DocSubcode
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 DocSubcode
impl Debug for DocSubcode
Source§impl<'de> Deserialize<'de> for DocSubcode
impl<'de> Deserialize<'de> for DocSubcode
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>,
Source§impl Hash for DocSubcode
impl Hash for DocSubcode
Source§impl PartialEq for DocSubcode
impl PartialEq for DocSubcode
Source§fn eq(&self, other: &DocSubcode) -> bool
fn eq(&self, other: &DocSubcode) -> bool
self and other values to be equal, and is used by ==.