pub struct Payload {
pub iss: String,
pub iat: i64,
pub jti: String,
pub sub: String,
pub aud: String,
pub custom: JsonValue,
pub nbf: i64,
pub exp: i64,
}Expand description
载荷
Fields§
§iss: String签发人
iat: i64签发时间
jti: String签发TOKEN
sub: String主题
aud: String受众
custom: JsonValue自定义内容
nbf: i64生效时间 秒s
exp: i64过期时间 秒s
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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