pub struct CredData {
pub secret: Option<Vec<u8>>,
pub error: Option<Error>,
}Expand description
The (in-memory) persisted data for a mock credential.
We keep a password but, unlike most credentials stores, we also keep an intended error to return on the next call.
(Everything about this structure is public for transparency. Most credential store implementations hide their internals.)
Fields§
§secret: Option<Vec<u8>>The stored secret, or None if the credential has none.
error: Option<Error>The error the next operation on this credential returns, if any.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CredData
impl !UnwindSafe for CredData
impl Forget for CredData
impl Freeze for CredData
impl Move for CredData
impl Send for CredData
impl Sync for CredData
impl Unpin for CredData
impl UnsafeUnpin for CredData
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