pub enum Encoding {
Bytes,
Hex,
HexUpper,
Base64,
Base64UrlNoPad,
}
Expand description
The encoding to use when decoding or encoding a string.
Variants§
Bytes
The data is encoded as a json sting of bytes.
For example "[104, 22, 33]"
.
This is not the most efficient encoding but easy to write by hand.
Hex
Hexadecimal encoding.
HexUpper
Uppercase hexadecimal encoding.
Base64
Standard base64 encoding.
Base64UrlNoPad
Base64 encoding with URL safe characters and no padding. Note this means no padding characters are used not that the data is not word aligned.
Trait Implementations§
impl Copy for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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