pub struct AuthCheckResult {
pub authenticated: bool,
pub user: Option<String>,
pub reason: Option<String>,
pub hint: Option<String>,
}Expand description
认证检查结果。
包含认证状态的详细信息,用于生成用户友好的错误消息。
Fields§
§authenticated: bool是否已认证。
user: Option<String>用户名(如果已认证)。
reason: Option<String>失败原因(如果未认证)。
hint: Option<String>修复建议。
Trait Implementations§
Source§impl Clone for AuthCheckResult
impl Clone for AuthCheckResult
Auto Trait Implementations§
impl Forget for AuthCheckResult
impl Freeze for AuthCheckResult
impl Move for AuthCheckResult
impl RefUnwindSafe for AuthCheckResult
impl Send for AuthCheckResult
impl Sync for AuthCheckResult
impl Unpin for AuthCheckResult
impl UnsafeUnpin for AuthCheckResult
impl UnwindSafe for AuthCheckResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more