pub struct PrebuiltResolution {
pub version: String,
pub url: String,
pub sha256: Option<String>,
}Expand description
A resolved prebuilt toolchain: the concrete version, the vendor download URL, and the upstream-published sha256 when one is available.
sha256 is None for the “compute-on-download” path — vendors that publish
no per-artifact digest (or exact-version code paths that construct the URL
without querying the release index). download_verified then records the
digest it computes over the bytes.
Fields§
§version: StringThe concrete resolved version (e.g. 1.23.6).
url: StringThe vendor download URL.
sha256: Option<String>The upstream-published sha256 (bare hex), when available.
Trait Implementations§
Source§impl Clone for PrebuiltResolution
impl Clone for PrebuiltResolution
Source§fn clone(&self) -> PrebuiltResolution
fn clone(&self) -> PrebuiltResolution
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 PrebuiltResolution
impl Debug for PrebuiltResolution
impl Eq for PrebuiltResolution
Source§impl PartialEq for PrebuiltResolution
impl PartialEq for PrebuiltResolution
Source§fn eq(&self, other: &PrebuiltResolution) -> bool
fn eq(&self, other: &PrebuiltResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrebuiltResolution
Auto Trait Implementations§
impl Freeze for PrebuiltResolution
impl RefUnwindSafe for PrebuiltResolution
impl Send for PrebuiltResolution
impl Sync for PrebuiltResolution
impl Unpin for PrebuiltResolution
impl UnsafeUnpin for PrebuiltResolution
impl UnwindSafe for PrebuiltResolution
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> 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.