pub struct CredentialMetadata {
pub title: String,
pub credential_type: String,
pub program: Option<String>,
pub issue_date: String,
pub completion_date: Option<String>,
pub attributes: Vec<CredentialAttribute>,
}Expand description
Non-sensitive metadata for credentials
Fields§
§title: StringCredential title (e.g., “Bachelor of Science in Computer Science”)
credential_type: StringCredential type within subcode (e.g., “undergraduate_transcript”, “doctoral_degree”)
program: Option<String>Program/field of study (optional, can be commitment instead)
issue_date: StringIssue date in human-readable format (e.g., “2024-05-15”)
completion_date: Option<String>Optional completion date
attributes: Vec<CredentialAttribute>Additional public attributes (non-PII)
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 (const: unstable) · 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
Source§impl PartialEq for CredentialMetadata
impl PartialEq for CredentialMetadata
Source§fn eq(&self, other: &CredentialMetadata) -> bool
fn eq(&self, other: &CredentialMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CredentialMetadata
impl Serialize for CredentialMetadata
impl Eq for CredentialMetadata
impl StructuralPartialEq for CredentialMetadata
Auto Trait Implementations§
impl Freeze for CredentialMetadata
impl RefUnwindSafe for CredentialMetadata
impl Send for CredentialMetadata
impl Sync for CredentialMetadata
impl Unpin for CredentialMetadata
impl UnsafeUnpin 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