pub trait CredentialFields: LedgerObjectCommonFields {
// Provided methods
fn subject(&self) -> Result<AccountID> { ... }
fn issuer(&self) -> Result<AccountID> { ... }
fn credential_type(&self) -> Result<StandardBlob> { ... }
fn expiration(&self) -> Result<Option<u32>> { ... }
fn uri(&self) -> Result<Option<UriBlob>> { ... }
fn issuer_node(&self) -> Result<u64> { ... }
fn subject_node(&self) -> Result<Option<u64>> { ... }
fn previous_txn_id(&self) -> Result<Hash256> { ... }
fn previous_txn_lgr_seq(&self) -> Result<u32> { ... }
}Expand description
Trait providing access to fields specific to Credential objects in any ledger.
Provided Methods§
Sourcefn credential_type(&self) -> Result<StandardBlob>
fn credential_type(&self) -> Result<StandardBlob>
Arbitrary data defining the type of credential this entry represents. The minimum length is 1 byte and the maximum length is 64 bytes.
Sourcefn expiration(&self) -> Result<Option<u32>>
fn expiration(&self) -> Result<Option<u32>>
The Expiration field (Optional).
Sourcefn uri(&self) -> Result<Option<UriBlob>>
fn uri(&self) -> Result<Option<UriBlob>>
Arbitrary additional data about the credential, for example a URL where a W3C-formatted Verifiable Credential can be retrieved.
Sourcefn issuer_node(&self) -> Result<u64>
fn issuer_node(&self) -> Result<u64>
A hint indicating which page of the issuer’s directory links to this entry, in case the directory consists of multiple pages.
Sourcefn subject_node(&self) -> Result<Option<u64>>
fn subject_node(&self) -> Result<Option<u64>>
A hint indicating which page of the subject’s owner directory links to this entry, in case the directory consists of multiple pages.
Sourcefn previous_txn_id(&self) -> Result<Hash256>
fn previous_txn_id(&self) -> Result<Hash256>
The identifying hash of the transaction that most recently modified this entry.
Sourcefn previous_txn_lgr_seq(&self) -> Result<u32>
fn previous_txn_lgr_seq(&self) -> Result<u32>
The index of the ledger that contains the transaction that most recently modified this entry.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".