Skip to content

Commit cc13221

Browse files
committed
impl DerefMut for SdJwtClaims
1 parent 65d58b2 commit cc13221

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sd_jwt.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::collections::HashMap;
55
use std::fmt::Display;
66
use std::iter::Peekable;
77
use std::ops::Deref;
8+
use std::ops::DerefMut;
89
use std::str::FromStr;
910

1011
use crate::jwt::Jwt;
@@ -43,6 +44,12 @@ impl Deref for SdJwtClaims {
4344
}
4445
}
4546

47+
impl DerefMut for SdJwtClaims {
48+
fn deref_mut(&mut self) -> &mut Self::Target {
49+
&mut self.properties
50+
}
51+
}
52+
4653
/// Representation of an SD-JWT of the format
4754
/// `<Issuer-signed JWT>~<Disclosure 1>~<Disclosure 2>~...~<Disclosure N>~<optional KB-JWT>`.
4855
#[derive(Debug, Clone, Eq, PartialEq)]

0 commit comments

Comments
 (0)