#[non_exhaustive]pub struct RejectedValue { /* private fields */ }Expand description
One fail-soft drop with a typed reason and origin.
Construction masks URL-shaped user:password in input, or withholds the token when a
credential fragment may remain (for example a password that contains whitespace). Derived
Debug and the text accessors therefore cannot expose a password even when the caller
supplies an unparseable credential-bearing URL.
Implementations§
Source§impl RejectedValue
impl RejectedValue
Sourcepub const fn affected_scheme(&self) -> Option<Scheme>
pub const fn affected_scheme(&self) -> Option<Scheme>
Request scheme this drop took an answer away from, when one is known.
Under the resolve feature, resolve reports
Error::ProxyEntryUnusable rather than
ProxyStep::Direct for such a scheme, so a caller is not told “no proxy” about a
request the platform would have proxied. Those two names are left unlinked because
the feature they live behind can be off while this type is still documented.
Sourcepub const fn kind(&self) -> RejectionKind
pub const fn kind(&self) -> RejectionKind
Typed reason the value was dropped.
Sourcepub const fn source(&self) -> &RejectionSource
pub const fn source(&self) -> &RejectionSource
Configuration origin of the dropped value.
Sourcepub fn redacted_input(&self) -> &str
pub fn redacted_input(&self) -> &str
Redacted original input.