pub struct JsonReader<T: Read> { /* private fields */ }
Available on crate feature
json
only.Expand description
JsonReader
deserializes a keyset from JSON format.
Implementations§
Source§impl<T: Read> JsonReader<T>
impl<T: Read> JsonReader<T>
Sourcepub fn new(r: T) -> Self
pub fn new(r: T) -> Self
Return a new JsonReader
that will read from r
.
Trait Implementations§
Source§impl<T: Read> Reader for JsonReader<T>
impl<T: Read> Reader for JsonReader<T>
Source§fn read(&mut self) -> Result<Keyset, TinkError>
fn read(&mut self) -> Result<Keyset, TinkError>
Return a (cleartext) Keyset
object from the underlying
std::io::Read
.
Source§fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
fn read_encrypted(&mut self) -> Result<EncryptedKeyset, TinkError>
Return an EncryptedKeyset
object from the underlying
std::io::Read
.
Auto Trait Implementations§
impl<T> Freeze for JsonReader<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonReader<T>where
T: RefUnwindSafe,
impl<T> Send for JsonReader<T>where
T: Send,
impl<T> Sync for JsonReader<T>where
T: Sync,
impl<T> Unpin for JsonReader<T>where
T: Unpin,
impl<T> UnwindSafe for JsonReader<T>where
T: UnwindSafe,
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