pub struct ExecTxResult {
pub code: Code,
pub data: Bytes,
pub log: String,
pub info: String,
pub gas_wanted: i64,
pub gas_used: i64,
pub events: Vec<Event>,
pub codespace: String,
}
Expand description
Results of executing one individual transaction.
This structure is equivalent to response::DeliverTx
which will be
deprecated and removed.
Fields§
§code: Code
The response code.
This code should be Ok
only if the transaction is fully valid. However,
invalid transactions included in a block will still be executed against
the application state.
data: Bytes
Result bytes, if any.
log: String
The output of the application’s logger.
May be non-deterministic.
info: String
Additional information.
May be non-deterministic.
gas_wanted: i64
Amount of gas requested for the transaction.
gas_used: i64
Amount of gas consumed by the transaction.
events: Vec<Event>
Events that occurred while executing the transaction.
codespace: String
The namespace for the code
.
Trait Implementations§
Source§impl Clone for ExecTxResult
impl Clone for ExecTxResult
Source§fn clone(&self) -> ExecTxResult
fn clone(&self) -> ExecTxResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExecTxResult
impl Debug for ExecTxResult
Source§impl Default for ExecTxResult
impl Default for ExecTxResult
Source§fn default() -> ExecTxResult
fn default() -> ExecTxResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecTxResult
impl<'de> Deserialize<'de> for ExecTxResult
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 From<ExecTxResult> for ExecTxResult
impl From<ExecTxResult> for ExecTxResult
Source§fn from(deliver_tx: ExecTxResult) -> Self
fn from(deliver_tx: ExecTxResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExecTxResult
impl PartialEq for ExecTxResult
Source§impl Protobuf<ExecTxResult> for ExecTxResult
impl Protobuf<ExecTxResult> for ExecTxResult
§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode into a buffer in Protobuf format. Read more
§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
§fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
§fn encoded_len(self) -> usize
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
§fn encode_vec(self) -> Vec<u8> ⓘ
fn encode_vec(self) -> Vec<u8> ⓘ
Encodes into a Protobuf-encoded
Vec<u8>
.§fn decode_vec(v: &[u8]) -> Result<Self, Error>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8>
(or equivalent).§fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
Encode with a length-delimiter to a
Vec<u8>
Protobuf-encoded message.§fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a
Vec<u8>
or equivalent.Source§impl Serialize for ExecTxResult
impl Serialize for ExecTxResult
Source§impl TryFrom<ExecTxResult> for ExecTxResult
impl TryFrom<ExecTxResult> for ExecTxResult
impl Eq for ExecTxResult
impl StructuralPartialEq for ExecTxResult
Auto Trait Implementations§
impl !Freeze for ExecTxResult
impl RefUnwindSafe for ExecTxResult
impl Send for ExecTxResult
impl Sync for ExecTxResult
impl Unpin for ExecTxResult
impl UnwindSafe for ExecTxResult
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