pub struct PresentedCredential {
pub data: Vec<u8>,
pub format: CredentialFormat,
pub unlinkable: bool,
}Expand description
A credential presentation ready to be sent to a verifier.
Fields§
§data: Vec<u8>The serialized presentation bytes.
format: CredentialFormatThe credential format.
unlinkable: boolWhether this presentation is unlinkable (true for BBS+ derived proofs).
Trait Implementations§
Source§impl Clone for PresentedCredential
impl Clone for PresentedCredential
Source§fn clone(&self) -> PresentedCredential
fn clone(&self) -> PresentedCredential
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 PresentedCredential
impl Debug for PresentedCredential
Source§impl<'de> Deserialize<'de> for PresentedCredential
impl<'de> Deserialize<'de> for PresentedCredential
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 PresentedCredential
impl RefUnwindSafe for PresentedCredential
impl Send for PresentedCredential
impl Sync for PresentedCredential
impl Unpin for PresentedCredential
impl UnwindSafe for PresentedCredential
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