#[non_exhaustive]pub struct IssuedSdJwt {
pub jwt: String,
pub compact: String,
pub disclosures: Vec<String>,
}Expand description
The result of issuing an SD-JWT: the signed JWT, the SD-JWT compact serialization ready to hand to a holder, and the raw Disclosure strings (in case the caller wants to persist or selectively re-forward a subset later, e.g. to build a holder-controlled presentation).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.jwt: StringThe Issuer-signed JWT alone — three dot-separated segments, no ~.
Useful for callers that want to store the JWT and Disclosures
separately rather than as one compact string.
compact: StringSD-JWT compact serialization: <jwt>~<disclosure_1>~...~<disclosure_n>~
(a trailing ~ and no Key Binding JWT segment, since KB-JWT is out
of scope for this module — see the module docs). If
disclosable_claims was empty, this equals jwt with no ~
appended at all, matching a plain (non-SD) JWT.
disclosures: Vec<String>The base64url-encoded Disclosure strings, in the same order as the
disclosable_claims they were built from.
Trait Implementations§
Source§impl Clone for IssuedSdJwt
impl Clone for IssuedSdJwt
Source§fn clone(&self) -> IssuedSdJwt
fn clone(&self) -> IssuedSdJwt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IssuedSdJwt
impl Debug for IssuedSdJwt
impl Eq for IssuedSdJwt
Source§impl PartialEq for IssuedSdJwt
impl PartialEq for IssuedSdJwt
impl StructuralPartialEq for IssuedSdJwt
Auto Trait Implementations§
impl Freeze for IssuedSdJwt
impl RefUnwindSafe for IssuedSdJwt
impl Send for IssuedSdJwt
impl Sync for IssuedSdJwt
impl Unpin for IssuedSdJwt
impl UnsafeUnpin for IssuedSdJwt
impl UnwindSafe for IssuedSdJwt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.