pub struct GoParseResult {
pub dependencies: Vec<GoDependency>,
pub module_path: Option<String>,
pub go_version: Option<String>,
pub uri: Uri,
pub resolved_chains: Vec<GoProxyChain>,
}Expand description
Result of parsing a go.mod file.
Fields§
§dependencies: Vec<GoDependency>All dependencies found in the file
module_path: Option<String>Module path declared in module directive
go_version: Option<String>Minimum Go version from go directive
uri: UriDocument URI
resolved_chains: Vec<GoProxyChain>Every $GOENV-resolved GOPROXY/GOPRIVATE-bypass chain this parse implies (spec
034), ready for GoRegistry::register_chain. Empty when $GOENV declares no
override (US-005).
Trait Implementations§
Source§impl Clone for GoParseResult
impl Clone for GoParseResult
Source§fn clone(&self) -> GoParseResult
fn clone(&self) -> GoParseResult
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 GoParseResult
impl Debug for GoParseResult
Source§impl ParseResult for GoParseResult
impl ParseResult for GoParseResult
Source§fn dependencies(&self) -> Vec<&dyn Dependency>
fn dependencies(&self) -> Vec<&dyn Dependency>
All dependencies found in the manifest
Source§fn workspace_root(&self) -> Option<&Path>
fn workspace_root(&self) -> Option<&Path>
Workspace root path (for monorepo support)
Source§fn blocked_registries(&self) -> Vec<(Range, HostClass, String)>
fn blocked_registries(&self) -> Vec<(Range, HostClass, String)>
Dependency lines whose registry-index resolution was blocked by a workspace-registry
reachability policy (spec
.local/specs/023-cargo-custom-registries/plan-1b.md §1.7,
#443) — (name_range, blocked host class, raw declared value) triples, where the raw
value is the exact registry/registry-index alias or URL the dependency declared
(so two different blocked aliases render as two distinguishable messages, not one
byte-identical warning). Used by
crate::lsp_helpers::generate_diagnostics_from_cache to surface an
[tower_lsp_server::ls_types::DiagnosticSeverity::INFORMATION] diagnostic on the
blocked dependency’s line so the block never degrades silently. Read moreAuto Trait Implementations§
impl Freeze for GoParseResult
impl RefUnwindSafe for GoParseResult
impl Send for GoParseResult
impl Sync for GoParseResult
impl Unpin for GoParseResult
impl UnsafeUnpin for GoParseResult
impl UnwindSafe for GoParseResult
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