pub struct GoVersionInfo {
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 install_path: Option<PathBuf>,
pub cache_path: Option<PathBuf>,
}
Expand description
Detailed information about a Go version
Fields§
§version: String
Version number (e.g., “1.21.0”)
os: String
Operating system (e.g., “linux”, “windows”, “darwin”)
arch: String
Architecture (e.g., “amd64”, “arm64”, “386”)
extension: String
File extension (e.g., “tar.gz”, “zip”)
filename: String
Complete filename (e.g., “go1.21.0.linux-amd64.tar.gz”)
download_url: String
Download URL
sha256: Option<String>
Official SHA256 checksum
size: Option<u64>
File size in bytes
is_installed: bool
Whether it’s installed
is_cached: bool
Whether it’s cached
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 moreAuto Trait Implementations§
impl Freeze for GoVersionInfo
impl RefUnwindSafe for GoVersionInfo
impl Send for GoVersionInfo
impl Sync for GoVersionInfo
impl Unpin 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