pub struct Credential { /* private fields */ }Expand description
A bearer credential a host uses to authenticate to a remote provider.
The secret is never rendered: both Debug and
Display print the fixed placeholder Credential(<redacted>),
so a credential that reaches a log line, an {:?}/{} interpolation, or a
panic payload cannot spill its bytes (SPEC.md §4.2, C8). The only way
to read the raw value is Credential::expose, a crate-private method used
solely to attach the header on the wire — a leak is therefore greppable.
Implementations§
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
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 moreSource§impl Debug for Credential
C8: a credential in a {:?} rendering (a log line, a panic payload) prints a
fixed placeholder, never its bytes.
impl Debug for Credential
C8: a credential in a {:?} rendering (a log line, a panic payload) prints a
fixed placeholder, never its bytes.
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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