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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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