mirror of https://github.com/status-im/evmc.git
rust: derive Debug trait on some abstractions
Such as ExecutionResult and ExecutionMessage.
This commit is contained in:
parent
611e050dcf
commit
cd0a8bc950
|
@ -30,6 +30,7 @@ pub trait EvmcVm {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EVMC result structure.
|
/// EVMC result structure.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct ExecutionResult {
|
pub struct ExecutionResult {
|
||||||
status_code: ffi::evmc_status_code,
|
status_code: ffi::evmc_status_code,
|
||||||
gas_left: i64,
|
gas_left: i64,
|
||||||
|
@ -38,6 +39,7 @@ pub struct ExecutionResult {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EVMC execution message structure.
|
/// EVMC execution message structure.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct ExecutionMessage {
|
pub struct ExecutionMessage {
|
||||||
kind: ffi::evmc_call_kind,
|
kind: ffi::evmc_call_kind,
|
||||||
flags: u32,
|
flags: u32,
|
||||||
|
|
Loading…
Reference in New Issue