Enum cataclysm_jwt::Error
source · pub enum Error {
ParseTimestamp,
JWT(JWTError),
Key(KeyError),
Parse(ParseIntError),
Decode(DecodeError, &'static str),
Serde(Error),
Construction(ConstructionError),
UTF8(Utf8Error),
Reqwest(Error),
}
Expand description
Main error
Variants§
ParseTimestamp
Unable to parse timestamp for ‘nbf’, ‘iat’ or ‘exp’ fields
JWT(JWTError)
JWT sub error
Key(KeyError)
Key sub error
Parse(ParseIntError)
Parse error while converting ‘nbf’, ‘iat’ or ‘exp’ to integers to parse to timestamp
Decode(DecodeError, &'static str)
Decode base64 url safe error while parsing JWT
Serde(Error)
Serde error while deserializing JWT parts into HashMaps
Construction(ConstructionError)
Construction sub error
UTF8(Utf8Error)
UTF8 error while decoding JWT from base64
Reqwest(Error)
Reqwest error while trying to obtain JWK array (JWKS)
Trait Implementations§
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<Unspecified> for Error
impl From<Unspecified> for Error
source§fn from(value: Unspecified) -> Self
fn from(value: Unspecified) -> Self
Converts to this type from the input type.