pub enum Charset {
Alphanumeric,
Base64Url,
Token,
}Expand description
Which characters a credential’s body is made of, so that a prefix match is not a match on prose that happens to start with the same letters.
Variants§
Alphanumeric
A-Z a-z 0-9.
Base64Url
A-Z a-z 0-9 - _, the base64url alphabet without padding.
Token
A-Z a-z 0-9 + / = - _ ., which is every token alphabet in use.
Implementations§
Trait Implementations§
impl Copy for Charset
impl Eq for Charset
impl StructuralPartialEq for Charset
Auto Trait Implementations§
impl Forget for Charset
impl Freeze for Charset
impl Move for Charset
impl RefUnwindSafe for Charset
impl Send for Charset
impl Sync for Charset
impl Unpin for Charset
impl UnsafeUnpin for Charset
impl UnwindSafe for Charset
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