pub struct AuthResult {
pub need_auth: bool,
pub token: Option<TokenValue>,
pub token_info: Option<TokenInfo>,
pub is_valid: bool,
}Expand description
Authentication result after processing 处理后的鉴权结果
Fields§
§need_auth: boolWhether authentication is required for this path 此路径是否需要鉴权
token: Option<TokenValue>Extracted token value 提取的token值
token_info: Option<TokenInfo>Token information if valid 如果有效则包含token信息
is_valid: boolWhether the token is valid token是否有效
Implementations§
Source§impl AuthResult
impl AuthResult
Auto Trait Implementations§
impl Freeze for AuthResult
impl RefUnwindSafe for AuthResult
impl Send for AuthResult
impl Sync for AuthResult
impl Unpin for AuthResult
impl UnwindSafe for AuthResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more