Trait EncodeDecodeBase64
pub trait EncodeDecodeBase64: Sized {
// Required methods
fn encode_base64(&self) -> String;
fn decode_base64(value: &str) -> Result<Self, FastCryptoError>;
}
Expand description
Cryptographic material with an immediate conversion to/from Base64 strings.
This is an extension trait of ToFromBytes
above.
Required Methods§
fn encode_base64(&self) -> String
fn decode_base64(value: &str) -> Result<Self, FastCryptoError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.