pub struct NuGetAuth(/* private fields */);Expand description
A pre-formatted Basic base64(username:password) Authorization header value (issue #561).
Redacted everywhere except the one call site (crate::registry::NuGetRegistry::fetch) that
reads it into a request header. Constructible only from within this crate (see this
module’s security-model doc) and deliberately does not derive Hash — making “a fully
expanded, ready-to-send Authorization credential inside a hash key” a compile error rather
than a review item for this type specifically (NFR-001/FR-016), not a blanket
no-credential-derives-Hash rule for the module — see this module’s private
RedactedSecret type’s own Hash derive for the (deliberately different, and
narrower-risk) case that one exists for. Never stores the username/password separately once
constructed.
A thin wrapper over deps_core::secret::Redacted rather than a bare type alias:
Debug prints NuGetAuth(***), not Redacted(***), so a panic message or log line
still names which credential leaked its type.
Trait Implementations§
impl Eq for NuGetAuth
impl StructuralPartialEq for NuGetAuth
Auto Trait Implementations§
impl Freeze for NuGetAuth
impl RefUnwindSafe for NuGetAuth
impl Send for NuGetAuth
impl Sync for NuGetAuth
impl Unpin for NuGetAuth
impl UnsafeUnpin for NuGetAuth
impl UnwindSafe for NuGetAuth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.