Enum jwtinfo::jwt::JWTParseError
source · pub enum JWTParseError {
MissingSection(/* private fields */),
InvalidUtf8(Utf8Error),
InvalidBase64(DecodeError),
InvalidJSON(Error),
}
Expand description
Represents an error while parsing a JWT
Variants§
MissingSection(/* private fields */)
Indicates that an expected section (Header, Body or Signature) was not found
InvalidUtf8(Utf8Error)
Indicates that a section did not contain a valid utf8 string
InvalidBase64(DecodeError)
Indicates that a given section was not correctly Base64-encoded
InvalidJSON(Error)
Indicates that a given section did not contain a valid JSON string
Trait Implementations§
source§impl Debug for JWTParseError
impl Debug for JWTParseError
source§impl Display for JWTParseError
impl Display for JWTParseError
source§impl From<DecodeError> for JWTParseError
impl From<DecodeError> for JWTParseError
source§fn from(err: DecodeError) -> JWTParseError
fn from(err: DecodeError) -> JWTParseError
Converts to this type from the input type.
source§impl From<Error> for JWTParseError
impl From<Error> for JWTParseError
source§fn from(err: Error) -> JWTParseError
fn from(err: Error) -> JWTParseError
Converts to this type from the input type.
source§impl From<Utf8Error> for JWTParseError
impl From<Utf8Error> for JWTParseError
source§fn from(err: Utf8Error) -> JWTParseError
fn from(err: Utf8Error) -> JWTParseError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for JWTParseError
impl Send for JWTParseError
impl Sync for JWTParseError
impl Unpin for JWTParseError
impl !UnwindSafe for JWTParseError
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