#[non_exhaustive]pub struct CredentialEntry {
pub name: String,
pub value: Zeroizing<String>,
pub domain: String,
pub header_name: String,
pub header_prefix: String,
}Expand description
A single stored credential entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringHuman-readable name for this credential.
value: Zeroizing<String>The secret value. Wrapped in Zeroizing so it is cleared from memory on drop.
domain: StringDomain this credential applies to.
header_name: StringHTTP header name to inject.
header_prefix: StringPrefix for the header value (e.g. “Bearer “).
Trait Implementations§
Source§impl Debug for CredentialEntry
impl Debug for CredentialEntry
Source§impl<'de> Deserialize<'de> for CredentialEntry
impl<'de> Deserialize<'de> for CredentialEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CredentialEntry
impl RefUnwindSafe for CredentialEntry
impl Send for CredentialEntry
impl Sync for CredentialEntry
impl Unpin for CredentialEntry
impl UnsafeUnpin for CredentialEntry
impl UnwindSafe for CredentialEntry
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