pub struct JwtValidation {
pub valid: bool,
pub username: Option<String>,
pub network: Option<String>,
pub issued_at: Option<i64>,
pub expires_at: Option<i64>,
pub error: Option<String>,
}Expand description
JWT validation result
Fields§
§valid: bool§username: Option<String>§network: Option<String>§issued_at: Option<i64>§expires_at: Option<i64>§error: Option<String>Trait Implementations§
Source§impl Clone for JwtValidation
impl Clone for JwtValidation
Source§fn clone(&self) -> JwtValidation
fn clone(&self) -> JwtValidation
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 JwtValidation
impl Debug for JwtValidation
Source§impl<'de> Deserialize<'de> for JwtValidation
impl<'de> Deserialize<'de> for JwtValidation
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
Auto Trait Implementations§
impl Freeze for JwtValidation
impl RefUnwindSafe for JwtValidation
impl Send for JwtValidation
impl Sync for JwtValidation
impl Unpin for JwtValidation
impl UnwindSafe for JwtValidation
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