pub struct SignedCredential {
pub version: ProtocolV1,
pub credential: Credential,
pub proof: CredentialProof,
}Expand description
Final holder credential.
info is the JSON value visible to the issuer during issuance.
blind_msg is the JSON value hidden from the issuer while signing and
disclosed in the final credential. For the current Fedi/Nostr use case this
will likely contain a Nostr holder public key, but that is application data,
not a protocol-level field.
The credential revocation digest is computed over the canonical credential payload, excluding the proof.
Fields§
§version: ProtocolV1§credential: Credential§proof: CredentialProofTrait Implementations§
Source§impl Clone for SignedCredential
impl Clone for SignedCredential
Source§fn clone(&self) -> SignedCredential
fn clone(&self) -> SignedCredential
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 SignedCredential
impl Debug for SignedCredential
Source§impl<'de> Deserialize<'de> for SignedCredential
impl<'de> Deserialize<'de> for SignedCredential
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 SignedCredential
impl PartialEq for SignedCredential
Source§impl Serialize for SignedCredential
impl Serialize for SignedCredential
impl StructuralPartialEq for SignedCredential
Auto Trait Implementations§
impl Freeze for SignedCredential
impl RefUnwindSafe for SignedCredential
impl Send for SignedCredential
impl Sync for SignedCredential
impl Unpin for SignedCredential
impl UnsafeUnpin for SignedCredential
impl UnwindSafe for SignedCredential
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