pub struct Releases {
pub builds: Vec<BuildInfo>,
pub releases: BTreeMap<Version, String>,
}
Expand description
Defines the struct that the JSON-formatted release list can be deserialized into.
{ “builds”: [ { “version”: “0.8.7”, “sha256”: “0x0xcc5c663d1fe17d4eb4aca09253787ac86b8785235fca71d9200569e662677990” } ] “releases”: { “0.8.7”: “solc-macosx-amd64-v0.8.7+commit.e28d00a7”, “0.8.6”: “solc-macosx-amd64-v0.8.6+commit.11564f7e”, … } }
Both the key and value are deserialized into semver::Version.
Fields§
§builds: Vec<BuildInfo>
§releases: BTreeMap<Version, String>
Implementations§
source§impl Releases
impl Releases
sourcepub fn get_checksum(&self, v: &Version) -> Option<Vec<u8>>
pub fn get_checksum(&self, v: &Version) -> Option<Vec<u8>>
Get the checksum of a solc version’s binary if it exists.
sourcepub fn get_artifact(&self, version: &Version) -> Option<&String>
pub fn get_artifact(&self, version: &Version) -> Option<&String>
Returns the artifact of the version if any
sourcepub fn into_versions(self) -> Vec<Version>
pub fn into_versions(self) -> Vec<Version>
Returns a sorted list of all versions
Trait Implementations§
source§impl<'de> Deserialize<'de> for Releases
impl<'de> Deserialize<'de> for Releases
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 PartialEq<Releases> for Releases
impl PartialEq<Releases> for Releases
impl Eq for Releases
impl StructuralEq for Releases
impl StructuralPartialEq for Releases
Auto Trait Implementations§
impl RefUnwindSafe for Releases
impl Send for Releases
impl Sync for Releases
impl Unpin for Releases
impl UnwindSafe for Releases
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.