pub struct IssuedCredential {
pub data: Vec<u8>,
pub format: CredentialFormat,
pub id: Option<String>,
pub issuer: Uri,
pub subject: Option<Uri>,
}Expand description
An issued credential in its serialized format.
Fields§
§data: Vec<u8>The serialized credential bytes (JWT string, CBOR bytes, etc.).
format: CredentialFormatThe credential format.
id: Option<String>Credential identifier, if assigned.
issuer: UriIssuer DID.
subject: Option<Uri>Subject DID, if bound to a holder.
Trait Implementations§
Source§impl Clone for IssuedCredential
impl Clone for IssuedCredential
Source§fn clone(&self) -> IssuedCredential
fn clone(&self) -> IssuedCredential
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 IssuedCredential
impl Debug for IssuedCredential
Source§impl<'de> Deserialize<'de> for IssuedCredential
impl<'de> Deserialize<'de> for IssuedCredential
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 IssuedCredential
impl RefUnwindSafe for IssuedCredential
impl Send for IssuedCredential
impl Sync for IssuedCredential
impl Unpin for IssuedCredential
impl UnwindSafe for IssuedCredential
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