pub struct AuthResult {
pub success: bool,
pub user_id: Option<String>,
pub roles: Vec<Role>,
pub message: Option<String>,
pub rate_limited: bool,
pub client_ip: Option<String>,
}
Expand description
Authentication result
Fields§
§success: bool
§user_id: Option<String>
§roles: Vec<Role>
§message: Option<String>
§rate_limited: bool
Rate limiting information
client_ip: Option<String>
Client IP address
Implementations§
Source§impl AuthResult
impl AuthResult
Trait Implementations§
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§
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