pub struct GoMetadata {
pub module_path: String,
pub latest_version: String,
pub description: Option<String>,
pub repository: Option<String>,
pub documentation: Option<String>,
}Expand description
Package metadata from proxy.golang.org.
Fields§
§module_path: StringModule path
latest_version: StringLatest 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 · 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 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) -> &str
fn latest_version(&self) -> &str
Latest stable version.
Source§impl PackageMetadata for GoMetadata
impl PackageMetadata for GoMetadata
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) -> &str
fn latest_version(&self) -> &str
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 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