pub struct GoMetadata {
pub module_path: PackageName,
pub latest_version: ConcreteVersion,
pub description: Option<String>,
pub repository: Option<String>,
pub documentation: Option<String>,
}Expand description
Package metadata from proxy.golang.org.
Fields§
§module_path: PackageNameModule path
latest_version: ConcreteVersionLatest stable version
description: Option<String>Description (if available from go.mod or README)
repository: Option<String>Repository URL (inferred from module path)
documentation: Option<String>Documentation URL (pkg.go.dev)
Trait Implementations§
Source§impl Clone for GoMetadata
impl Clone for GoMetadata
Source§fn clone(&self) -> GoMetadata
fn clone(&self) -> GoMetadata
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 GoMetadata
impl Debug for GoMetadata
Source§impl Metadata for GoMetadata
impl Metadata for GoMetadata
Source§fn name(&self) -> &PackageName
fn name(&self) -> &PackageName
The package name as the registry reports it. Read more
Source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Short description (optional).
Source§fn repository(&self) -> Option<&str>
fn repository(&self) -> Option<&str>
Repository URL (optional).
Source§fn documentation(&self) -> Option<&str>
fn documentation(&self) -> Option<&str>
Documentation URL (optional).
Source§fn latest_version(&self) -> &ConcreteVersion
fn latest_version(&self) -> &ConcreteVersion
Latest stable version.
Auto Trait Implementations§
impl Freeze for GoMetadata
impl RefUnwindSafe for GoMetadata
impl Send for GoMetadata
impl Sync for GoMetadata
impl Unpin for GoMetadata
impl UnsafeUnpin for GoMetadata
impl UnwindSafe for GoMetadata
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