pub struct GoParseResult {
pub dependencies: Vec<GoDependency>,
pub module_path: Option<String>,
pub go_version: Option<String>,
pub uri: Uri,
}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
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 · 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§impl ParseResultInfo for GoParseResult
impl ParseResultInfo for GoParseResult
type Dependency = GoDependency
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 GoParseResult
impl RefUnwindSafe for GoParseResult
impl Send for GoParseResult
impl Sync for GoParseResult
impl Unpin 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