pub struct CredentialMetadata {
pub id: CredentialId,
pub format: CredentialFormat,
pub issuer: Uri,
pub issuance_date: DateTime,
pub expiration_date: Option<DateTime>,
}Expand description
Metadata common to all credential formats.
Fields§
§id: CredentialIdLocal identifier for this credential.
format: CredentialFormatThe format of this credential.
issuer: UriIssuer identifier (typically a DID).
issuance_date: DateTimeDate the credential was issued.
expiration_date: Option<DateTime>Optional expiration date.
Trait Implementations§
Source§impl Clone for CredentialMetadata
impl Clone for CredentialMetadata
Source§fn clone(&self) -> CredentialMetadata
fn clone(&self) -> CredentialMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialMetadata
impl Debug for CredentialMetadata
Source§impl<'de> Deserialize<'de> for CredentialMetadata
impl<'de> Deserialize<'de> for CredentialMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CredentialMetadata
impl RefUnwindSafe for CredentialMetadata
impl Send for CredentialMetadata
impl Sync for CredentialMetadata
impl Unpin for CredentialMetadata
impl UnwindSafe for CredentialMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more