pub trait SecretValue:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>;
}Expand description
A type a secret’s value can be read as.
Required Methods§
Sourcefn from_bytes(bytes: &[u8]) -> Result<Self, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Reads the value from the secret’s bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".