pub struct CredentialKey<'key> {
pub app_id: &'key str,
pub provider: &'key str,
pub env: &'key str,
}Expand description
Identifies a single stored credential.
Backends derive their storage location from this key: the keychain service
name and the file path are both functions of (app_id, provider, env).
Fields§
§app_id: &'key strApplication id; namespaces credentials across CLIs sharing a keychain.
provider: &'key strAuth provider name.
env: &'key strTarget environment name.
Implementations§
Trait Implementations§
Source§impl<'key> Clone for CredentialKey<'key>
impl<'key> Clone for CredentialKey<'key>
Source§fn clone(&self) -> CredentialKey<'key>
fn clone(&self) -> CredentialKey<'key>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'key> Copy for CredentialKey<'key>
Auto Trait Implementations§
impl<'key> Freeze for CredentialKey<'key>
impl<'key> RefUnwindSafe for CredentialKey<'key>
impl<'key> Send for CredentialKey<'key>
impl<'key> Sync for CredentialKey<'key>
impl<'key> Unpin for CredentialKey<'key>
impl<'key> UnsafeUnpin for CredentialKey<'key>
impl<'key> UnwindSafe for CredentialKey<'key>
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