pub struct GoVersionInfo {Show 13 fields
pub version: String,
pub os: String,
pub arch: String,
pub extension: String,
pub filename: String,
pub download_url: String,
pub sha256: Option<String>,
pub size: Option<u64>,
pub is_installed: bool,
pub is_cached: bool,
pub is_current: bool,
pub install_path: Option<PathBuf>,
pub cache_path: Option<PathBuf>,
}Expand description
Detailed information about a Go version
Fields§
§version: StringVersion number (e.g., “1.21.0”)
os: StringOperating system (e.g., “linux”, “windows”, “darwin”)
arch: StringArchitecture (e.g., “amd64”, “arm64”, “386”)
extension: StringFile extension (e.g., “tar.gz”, “zip”)
filename: StringComplete filename (e.g., “go1.21.0.linux-amd64.tar.gz”)
download_url: StringDownload URL
sha256: Option<String>Official SHA256 checksum
size: Option<u64>File size in bytes
is_installed: boolWhether it’s installed
is_cached: boolWhether it’s cached
is_current: boolWhether it’s the current active version
install_path: Option<PathBuf>Local installation path (if installed)
cache_path: Option<PathBuf>Cache file path (if cached)
Trait Implementations§
Source§impl Clone for GoVersionInfo
impl Clone for GoVersionInfo
Source§fn clone(&self) -> GoVersionInfo
fn clone(&self) -> GoVersionInfo
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 GoVersionInfo
impl Debug for GoVersionInfo
Source§impl<'de> Deserialize<'de> for GoVersionInfo
impl<'de> Deserialize<'de> for GoVersionInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for GoVersionInfo
impl Ord for GoVersionInfo
Source§fn cmp(&self, other: &GoVersionInfo) -> Ordering
fn cmp(&self, other: &GoVersionInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GoVersionInfo
impl PartialEq for GoVersionInfo
Source§impl PartialOrd for GoVersionInfo
impl PartialOrd for GoVersionInfo
Source§impl Serialize for GoVersionInfo
impl Serialize for GoVersionInfo
impl Eq for GoVersionInfo
impl StructuralPartialEq for GoVersionInfo
Auto Trait Implementations§
impl Freeze for GoVersionInfo
impl RefUnwindSafe for GoVersionInfo
impl Send for GoVersionInfo
impl Sync for GoVersionInfo
impl Unpin for GoVersionInfo
impl UnsafeUnpin for GoVersionInfo
impl UnwindSafe for GoVersionInfo
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.