pub trait Writer {
// Required methods
fn write(&mut self, keyset: &Keyset) -> Result<(), TinkError>;
fn write_encrypted(
&mut self,
keyset: &EncryptedKeyset,
) -> Result<(), TinkError>;
}Expand description
Writer knows how to write a Keyset or an
EncryptedKeyset to some source.
Required Methods§
fn write(&mut self, keyset: &Keyset) -> Result<(), TinkError>
fn write_encrypted(&mut self, keyset: &EncryptedKeyset) -> Result<(), TinkError>
Implementors§
impl Writer for MemReaderWriter
impl<T: Write> Writer for BinaryWriter<T>
impl<T: Write> Writer for JsonWriter<T>
Available on crate feature
json only.