pub struct TestAuthContext {
pub sub: String,
pub iss: String,
pub aud: String,
pub kid: String,
pub exp: u64,
}Expand description
Typed auth context inserted by helpers and extracted in handlers.
Fields§
§sub: String§iss: String§aud: String§kid: String§exp: u64Trait Implementations§
Source§impl Clone for TestAuthContext
impl Clone for TestAuthContext
Source§fn clone(&self) -> TestAuthContext
fn clone(&self) -> TestAuthContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestAuthContext
impl Debug for TestAuthContext
Source§impl<'de> Deserialize<'de> for TestAuthContext
impl<'de> Deserialize<'de> for TestAuthContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S> FromRequestParts<S> for TestAuthContext
impl<S> FromRequestParts<S> for TestAuthContext
Source§impl PartialEq for TestAuthContext
impl PartialEq for TestAuthContext
Source§fn eq(&self, other: &TestAuthContext) -> bool
fn eq(&self, other: &TestAuthContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TestAuthContext
impl Serialize for TestAuthContext
impl Eq for TestAuthContext
impl StructuralPartialEq for TestAuthContext
Auto Trait Implementations§
impl Freeze for TestAuthContext
impl RefUnwindSafe for TestAuthContext
impl Send for TestAuthContext
impl Sync for TestAuthContext
impl Unpin for TestAuthContext
impl UnsafeUnpin for TestAuthContext
impl UnwindSafe for TestAuthContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§fn from_request(
req: Request<Body>,
state: &S,
) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
fn from_request( req: Request<Body>, state: &S, ) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
Perform the extraction.