pub struct MockData {
pub password: Option<String>,
pub error: Option<Error>,
}Expand description
The (in-memory) persisted data for a mock credential.
We keep a password, but unlike most keystores we also keep an intended error to return on the next call.
(Everything about this structure is public for transparency. Most keystore implementation hide their internals.)
Fields§
§password: Option<String>§error: Option<Error>Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockData
impl !RefUnwindSafe for MockData
impl Send for MockData
impl !Sync for MockData
impl Unpin for MockData
impl !UnwindSafe for MockData
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