pub struct DecodedInfo {
pub jwt: String,
pub payload: ClaimsSet<Value>,
}
Expand description
DecodedInfo with a decorated token will retrieve data for use in your functions
Fields§
§jwt: String
The complete encoded token (without the Bearer part)
payload: ClaimsSet<Value>
The decoded token in ClaimsSet
Trait Implementations§
Source§impl Clone for DecodedInfo
impl Clone for DecodedInfo
Source§fn clone(&self) -> DecodedInfo
fn clone(&self) -> DecodedInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 DecodedInfo
impl Debug for DecodedInfo
Source§impl<'de> Deserialize<'de> for DecodedInfo
impl<'de> Deserialize<'de> for DecodedInfo
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 FromRequest for DecodedInfo
impl FromRequest for DecodedInfo
Source§type Future = Ready<Result<DecodedInfo, <DecodedInfo as FromRequest>::Error>>
type Future = Ready<Result<DecodedInfo, <DecodedInfo as FromRequest>::Error>>
Future that resolves to a
Self
. Read moreSource§fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.Source§impl PartialEq for DecodedInfo
impl PartialEq for DecodedInfo
Source§impl Serialize for DecodedInfo
impl Serialize for DecodedInfo
impl StructuralPartialEq for DecodedInfo
Auto Trait Implementations§
impl Freeze for DecodedInfo
impl RefUnwindSafe for DecodedInfo
impl Send for DecodedInfo
impl Sync for DecodedInfo
impl Unpin for DecodedInfo
impl UnwindSafe for DecodedInfo
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