pub struct ParseResult {
pub dependencies: Vec<PypiDependency>,
pub workspace_root: Option<PathBuf>,
pub uri: Uri,
pub document_links: Vec<RequirementRef>,
pub resolved_chains: Vec<ResolvedChain>,
}Expand description
Parse result containing all dependencies from a Python dependency manifest.
Stores dependencies and optional workspace information for LSP operations.
Fields§
§dependencies: Vec<PypiDependency>All dependencies found in the manifest
workspace_root: Option<PathBuf>Workspace root path (None for Python - no workspace concept like Cargo)
uri: UriURI of the parsed file
document_links: Vec<RequirementRef>-r/-c file references found in a requirements file (always empty
for pyproject.toml).
resolved_chains: Vec<ResolvedChain>Every private-index chain this file’s --index-url/--extra-index-url/Poetry-source/
uv-index declarations imply (spec FR-002/003/005/007/013), ready for
PypiRegistry::register_chain/register_named_source — the only point where this
per-document resolution and the long-lived, shared PypiRegistry router meet (see
PypiEcosystem::parse_manifest). Empty for a file with no such declaration (US-004).
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParseResult
impl Debug for ParseResult
Source§impl ParseResult for ParseResult
impl ParseResult for ParseResult
Source§fn dependencies(&self) -> Vec<&dyn Dependency>
fn dependencies(&self) -> Vec<&dyn Dependency>
Source§fn workspace_root(&self) -> Option<&Path>
fn workspace_root(&self) -> Option<&Path>
Source§fn blocked_registries(&self) -> Vec<(Range, HostClass, String)>
fn blocked_registries(&self) -> Vec<(Range, HostClass, String)>
.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 ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more