pub struct Output {
pub contracts: BTreeMap<String, BTreeMap<String, Contract>>,
pub sources: BTreeMap<String, Source>,
pub errors: Vec<Error>,
pub version: Option<String>,
pub long_version: Option<String>,
pub revive_version: Option<String>,
}
Expand description
The solc --standard-json
output.
Fields§
§contracts: BTreeMap<String, BTreeMap<String, Contract>>
The file-contract hashmap.
sources: BTreeMap<String, Source>
The source code mapping data.
errors: Vec<Error>
The compilation errors and warnings.
version: Option<String>
The solc
compiler version.
long_version: Option<String>
The solc
compiler long version.
revive_version: Option<String>
The resolc
compiler version.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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 ErrorHandler for Output
impl ErrorHandler for Output
Source§fn errors(&self) -> Vec<&SolcStandardJsonOutputError>
fn errors(&self) -> Vec<&SolcStandardJsonOutputError>
Returns errors as a list.
Source§fn take_warnings(&mut self) -> Vec<SolcStandardJsonOutputError>
fn take_warnings(&mut self) -> Vec<SolcStandardJsonOutputError>
Extracts warnings from the list of messages.
Source§fn has_errors(&self) -> bool
fn has_errors(&self) -> bool
Checks if there is at least one error.
Source§fn check_errors(&self) -> Result<()>
fn check_errors(&self) -> Result<()>
Collects errors into one message and bails, if there is at least one error.
Source§fn exit_on_error(&self)
fn exit_on_error(&self)
Checks for errors, exiting the application if there is at least one error.
Source§fn take_and_write_warnings(&mut self)
fn take_and_write_warnings(&mut self)
Removes warnings from the list of messages and prints them to stderr.
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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> 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