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>>
§error: Option<Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CredData
impl !RefUnwindSafe for CredData
impl Send for CredData
impl Sync for CredData
impl Unpin for CredData
impl !UnwindSafe 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