Struct df_crypto::jwt::Jwt

source ·
pub struct Jwt { /* private fields */ }

Implementations§

初始化

  • iss 签发人

token信息

  • sub 主题
  • aud 受众
  • custom 自定义内容

生效时间与过期时间设置

  • nbf 生效时间
  • exp 过期时间 分钟

返回口令

  • key 加密密钥

验证

信息

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.