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) -> &[<GoParseResult as ParseResultInfo>::Dependency]
fn dependencies(&self) -> &[<GoParseResult as ParseResultInfo>::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 Serialize for GoParseResult
impl Serialize for GoParseResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
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