#[non_exhaustive]pub struct Processed {
pub payload: Map<String, Value>,
pub disclosed: Vec<DisclosedClaim>,
pub undisclosed: Vec<ClaimPath>,
/* private fields */
}sd-jwt only.Expand description
The outcome of SdJwt::process: the processed payload and where the disclosures went.
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.payload: Map<String, Value>The processed SD-JWT payload: disclosed claims in place, _sd, ... and _sd_alg
gone, undisclosed array elements removed.
disclosed: Vec<DisclosedClaim>Every disclosure that was matched, with the path of the claim it disclosed.
undisclosed: Vec<ClaimPath>The paths of array elements whose digest matched no disclosure, in the coordinates of the payload as issued.
Implementations§
Source§impl Processed
impl Processed
Sourcepub fn as_issued(&self) -> &Map<String, Value>
pub fn as_issued(&self) -> &Map<String, Value>
The payload in the coordinates of the issued credential: as payload,
except that an undisclosed array element stays in place as the {"...": "<digest>"}
object that referenced it. Claim paths of type metadata are evaluated against this.
Sourcepub fn disclosed_paths(&self) -> impl Iterator<Item = &ClaimPath>
pub fn disclosed_paths(&self) -> impl Iterator<Item = &ClaimPath>
The disclosed claim paths, in the coordinates of the issued credential.
Sourcepub fn is_disclosed(&self, path: &ClaimPath) -> bool
pub fn is_disclosed(&self, path: &ClaimPath) -> bool
Whether the claim at the concrete path was disclosed by a disclosure of its own.
Trait Implementations§
impl Eq for Processed
impl StructuralPartialEq for Processed
Auto Trait Implementations§
impl Freeze for Processed
impl RefUnwindSafe for Processed
impl Send for Processed
impl Sync for Processed
impl Unpin for Processed
impl UnsafeUnpin for Processed
impl UnwindSafe for Processed
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
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.