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.
Both the key and value are deserialized into semver::Version
.
{
"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",
...
}
}
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
impl Eq for Releases
impl StructuralPartialEq for Releases
Auto Trait Implementations§
impl Freeze for Releases
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more