pub enum InputForm {
Auto,
Hex,
Base64,
Raw,
}Expand description
How to read the top-level input.
Variants§
Auto
Detect hex / base64 / PEM text, otherwise treat as raw bytes.
Hex
The input is hex text (whitespace, : and 0x prefixes allowed).
Base64
The input is base64 text (standard or URL-safe, padded or not).
Raw
The input is raw bytes; no text encoding is detected at the top level.
Trait Implementations§
impl Copy for InputForm
impl Eq for InputForm
impl StructuralPartialEq for InputForm
Auto Trait Implementations§
impl Forget for InputForm
impl Freeze for InputForm
impl Move for InputForm
impl RefUnwindSafe for InputForm
impl Send for InputForm
impl Sync for InputForm
impl Unpin for InputForm
impl UnsafeUnpin for InputForm
impl UnwindSafe for InputForm
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