Trait securestore::BinarySerializable
source · [−]pub trait BinarySerializable {
fn serialize<'a>(&'a self) -> &'a [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
;
}
Expand description
A trait enabling directly saving a secret of the implementing type to the SecureStore vault.
BinarySerializable
implementations for String
, &str
, Vec<u8>
, and
&[u8]
are provided by this crate; implement this trait to support directly
setting other types via calls to
SecretsManager::set()
but make sure to keep
compatibility with other clients accessing the same store from different
languages or frameworks in mind, if that is a concern.