pub enum EncodingFormat {
Hex,
Base64,
}Expand description
Enum to represent the encoding format for the key.
§Examples
use genrs_lib::{encode_key, generate_key, EncodingFormat};
let key = generate_key(32);
let encoded_key = encode_key(key, EncodingFormat::Base64).unwrap();
println!("Generated and encoded key: {}", encoded_key);Refer to the encode_key function for encoding usage.
Variants§
Auto Trait Implementations§
impl Freeze for EncodingFormat
impl RefUnwindSafe for EncodingFormat
impl Send for EncodingFormat
impl Sync for EncodingFormat
impl Unpin for EncodingFormat
impl UnsafeUnpin for EncodingFormat
impl UnwindSafe for EncodingFormat
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