pub struct Auth {
pub uid: Option<String>,
pub token: Map,
}Expand description
request.auth for a caller with a token.
Fields§
§uid: Option<String>The token’s sub; without one, request.auth.uid is null.
token: MapEvery claim of the token.
Trait Implementations§
impl StructuralPartialEq for Auth
Auto Trait Implementations§
impl Forget for Auth
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
impl UnwindSafe for Auth
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