pub struct Error {
pub component: String,
pub error_code: Option<String>,
pub formatted_message: String,
pub message: String,
pub severity: String,
pub source_location: Option<SourceLocation>,
pub type: String,
}
Expand description
The solc --standard-json
output error.
Fields§
§component: String
The component type.
error_code: Option<String>
The error code.
formatted_message: String
The formatted error message.
message: String
The non-formatted error message.
severity: String
The error severity.
source_location: Option<SourceLocation>
The error location data.
type: String
The error type.
Implementations§
Source§impl Error
impl Error
Sourcepub fn message_ecrecover(src: Option<&str>) -> Self
pub fn message_ecrecover(src: Option<&str>) -> Self
Returns the ecrecover
function usage warning.
Sourcepub fn message_send_and_transfer(src: Option<&str>) -> Self
pub fn message_send_and_transfer(src: Option<&str>) -> Self
Returns the <address payable>
’s send
and transfer
methods usage error.
Sourcepub fn message_extcodesize(src: Option<&str>) -> Self
pub fn message_extcodesize(src: Option<&str>) -> Self
Returns the extcodesize
instruction usage warning.
Sourcepub fn message_tx_origin(src: Option<&str>) -> Self
pub fn message_tx_origin(src: Option<&str>) -> Self
Returns the origin
instruction usage warning.
Sourcepub fn push_contract_path(&mut self, path: &str)
pub fn push_contract_path(&mut self, path: &str)
Appends the contract path to the message..
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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