A JWS signature algorithm this crate can verify an access token with.
Crate-owned rather than a re-export of the JWT library’s type, so replacing
that library is not a breaking change here. It has no variant for HMAC
(HS256/HS384/HS512) or for none: a resource server must never verify
with a shared secret, and a crate::ResolvedOAuthConfig whose
algorithms names one cannot be written down.
Display (and Algorithm::as_str) give the JWS name; Debug prints the
same name. #[non_exhaustive]: an algorithm may be added in a minor
release.
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.