pub struct InvalidEntry {
pub raw: String,
pub reason: GoProxyUrlError,
}Expand description
A present-but-unusable GOPROXY hop — an invalid URL or a policy-blocked host (FR-009).
Carries the raw value as written, with any embedded userinfo redacted, so
GoEnvConfig::resolve_source_for can build a
DependencySource::CustomRegistry when every hop in a chain is invalid, or log a warning
naming a dropped hop, without ever holding or surfacing the credential itself.
Fields§
§raw: StringThe raw GOPROXY hop value, as written in $GOENV, with any user:pass@/user@
userinfo component stripped.
reason: GoProxyUrlErrorWhy it was rejected.
Trait Implementations§
Source§impl Clone for InvalidEntry
impl Clone for InvalidEntry
Source§fn clone(&self) -> InvalidEntry
fn clone(&self) -> InvalidEntry
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 moreAuto Trait Implementations§
impl Freeze for InvalidEntry
impl RefUnwindSafe for InvalidEntry
impl Send for InvalidEntry
impl Sync for InvalidEntry
impl Unpin for InvalidEntry
impl UnsafeUnpin for InvalidEntry
impl UnwindSafe for InvalidEntry
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