Struct identity_iota::credential::DecodedJwtCredential
source · #[non_exhaustive]pub struct DecodedJwtCredential<T = BTreeMap<String, Value>> {
pub credential: Credential<T>,
pub header: Box<JwsHeader>,
pub custom_claims: Option<BTreeMap<String, Value>>,
}
Expand description
Decoded Credential
from a cryptographically verified JWS.
Note that having an instance of this type only means the JWS it was constructed from was verified. It does not imply anything about a potentially present proof property on the credential itself.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.credential: Credential<T>
The decoded credential parsed to the Verifiable Credentials Data model.
header: Box<JwsHeader>
The protected header parsed from the JWS.
custom_claims: Option<BTreeMap<String, Value>>
The custom claims parsed from the JWT.
Trait Implementations§
source§impl<T> Clone for DecodedJwtCredential<T>where
T: Clone,
impl<T> Clone for DecodedJwtCredential<T>where
T: Clone,
source§fn clone(&self) -> DecodedJwtCredential<T>
fn clone(&self) -> DecodedJwtCredential<T>
Returns a copy 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 moreAuto Trait Implementations§
impl<T> Freeze for DecodedJwtCredential<T>where
T: Freeze,
impl<T> RefUnwindSafe for DecodedJwtCredential<T>where
T: RefUnwindSafe,
impl<T> Send for DecodedJwtCredential<T>where
T: Send,
impl<T> Sync for DecodedJwtCredential<T>where
T: Sync,
impl<T> Unpin for DecodedJwtCredential<T>where
T: Unpin,
impl<T> UnwindSafe for DecodedJwtCredential<T>where
T: UnwindSafe,
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