pub struct ParseResult {
pub dependencies: Vec<PypiDependency>,
pub workspace_root: Option<PathBuf>,
pub uri: Uri,
}Expand description
Parse result containing all dependencies from pyproject.toml.
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
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
Returns a duplicate of the value. Read more
1.0.0 · 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 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>
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§impl ParseResultInfo for ParseResult
impl ParseResultInfo for ParseResult
type Dependency = PypiDependency
Source§fn dependencies(&self) -> &[Self::Dependency]
fn dependencies(&self) -> &[Self::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).
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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