pub struct MidJwtPayload {
pub iss: String,
pub sub: String,
pub aud: String,
pub iat: u64,
pub exp: u64,
pub nonce: String,
pub claims: BTreeMap<String, ClaimValue>,
pub embedded_genesis_roster: EmbeddedGenesisRoster,
pub embedded_roster_chain: Vec<EmbeddedRosterChainEntry>,
pub embedded_verification_method: EmbeddedVerificationMethod,
}Expand description
The mID JWT payload — the JSON object that’s base64url-encoded as the second segment of the JWS compact-form token.
Fields§
§iss: StringIssuer — the user’s DID.
sub: StringSubject — same as iss for self-issued tokens.
aud: StringAudience — the RP’s bare origin from the request.
iat: u64Issued-at, Unix seconds.
exp: u64Expiry, Unix seconds. v1 ships short-lived (~1 hour) tokens.
nonce: StringRP-supplied nonce, echoed for replay defense.
claims: BTreeMap<String, ClaimValue>Claim values approved by the user, keyed by claim name.
embedded_genesis_roster: EmbeddedGenesisRosterSelf-signed genesis roster (signed by the key encoded in the DID).
embedded_roster_chain: Vec<EmbeddedRosterChainEntry>Chain of wallet-signed roster mutations from genesis to current.
embedded_verification_method: EmbeddedVerificationMethodThe device key signing this JWT — must appear in the head roster.
Trait Implementations§
Source§impl Clone for MidJwtPayload
impl Clone for MidJwtPayload
Source§fn clone(&self) -> MidJwtPayload
fn clone(&self) -> MidJwtPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MidJwtPayload
impl Debug for MidJwtPayload
Source§impl<'de> Deserialize<'de> for MidJwtPayload
impl<'de> Deserialize<'de> for MidJwtPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MidJwtPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MidJwtPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MidJwtPayload
impl Serialize for MidJwtPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MidJwtPayload
impl RefUnwindSafe for MidJwtPayload
impl Send for MidJwtPayload
impl Sync for MidJwtPayload
impl Unpin for MidJwtPayload
impl UnsafeUnpin for MidJwtPayload
impl UnwindSafe for MidJwtPayload
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