pub enum CredentialValue {
Single(String),
UserPass {
username: String,
password: String,
},
SshKeyPair {
private_key: String,
public_key: String,
},
FormFields(BTreeMap<String, String>),
PaymentCard {
cardholder: String,
number: String,
expiry: String,
cvv: String,
extra: BTreeMap<String, String>,
},
}Expand description
The result of reading a credential — includes the metadata envelope plus the decrypted value(s).
Variants§
Single(String)
A single opaque string (ApiKey, Token, HttpPasskey, Other).
UserPass
Username + password pair.
SshKeyPair
SSH keypair — private key in OpenSSH PEM format, public key in
ssh-ed25519 AAAA… format.
FormFields(BTreeMap<String, String>)
Arbitrary key/value pairs (form autofill fields).
PaymentCard
Payment card details.
Trait Implementations§
Source§impl Clone for CredentialValue
impl Clone for CredentialValue
Source§fn clone(&self) -> CredentialValue
fn clone(&self) -> CredentialValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CredentialValue
impl RefUnwindSafe for CredentialValue
impl Send for CredentialValue
impl Sync for CredentialValue
impl Unpin for CredentialValue
impl UnwindSafe for CredentialValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more