Skip to content

Commit

Permalink
impl DerefMut for SdJwtClaims
Browse files Browse the repository at this point in the history
  • Loading branch information
UMR1352 committed Sep 17, 2024
1 parent 65d58b2 commit cc13221
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sd_jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::collections::HashMap;
use std::fmt::Display;
use std::iter::Peekable;
use std::ops::Deref;
use std::ops::DerefMut;
use std::str::FromStr;

use crate::jwt::Jwt;
Expand Down Expand Up @@ -43,6 +44,12 @@ impl Deref for SdJwtClaims {
}
}

impl DerefMut for SdJwtClaims {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.properties
}
}

/// Representation of an SD-JWT of the format
/// `<Issuer-signed JWT>~<Disclosure 1>~<Disclosure 2>~...~<Disclosure N>~<optional KB-JWT>`.
#[derive(Debug, Clone, Eq, PartialEq)]
Expand Down

0 comments on commit cc13221

Please sign in to comment.