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: 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
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§const fn clone_from(&mut self, source: &Self)
const 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