pub struct WsAuthResult {
pub success: bool,
pub error: Option<String>,
pub connection_id: Option<String>,
pub tier: Option<String>,
pub rate_limit: Option<u32>,
pub session_timeout_secs: Option<u64>,
}Expand description
Authentication result sent to client
Fields§
§success: boolWhether authentication succeeded
error: Option<String>Error message if failed
connection_id: Option<String>Connection ID if succeeded
tier: Option<String>Subscription tier if succeeded
rate_limit: Option<u32>Rate limit (requests per minute)
session_timeout_secs: Option<u64>Session timeout in seconds
Trait Implementations§
Source§impl Debug for WsAuthResult
impl Debug for WsAuthResult
Auto Trait Implementations§
impl Freeze for WsAuthResult
impl RefUnwindSafe for WsAuthResult
impl Send for WsAuthResult
impl Sync for WsAuthResult
impl Unpin for WsAuthResult
impl UnwindSafe for WsAuthResult
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> 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