pub struct TxnResult {
pub executed: bool,
pub sanitization_error: bool,
pub resulting_state: Option<ResultingState>,
pub rent: u64,
pub is_ok: bool,
pub status: u32,
pub instruction_error: u32,
pub instruction_error_index: u32,
pub custom_error: u32,
pub return_data: Vec<u8>,
pub executed_units: u64,
pub fee_details: Option<FeeDetails>,
}
Expand description
The execution results for a transaction
Fields§
§executed: bool
Whether this transaction was executed
sanitization_error: bool
Whether there was a sanitization error
resulting_state: Option<ResultingState>
The state of each account after the transaction
rent: u64
§is_ok: bool
If an executed transaction has no error
status: u32
The transaction status (error code)
instruction_error: u32
The instruction error, if any
instruction_error_index: u32
The instruction error index, if any
custom_error: u32
Custom error, if any
return_data: Vec<u8>
The return data from this transaction, if any
executed_units: u64
Number of executed compute units
fee_details: Option<FeeDetails>
The collected fees in this transaction
Trait Implementations§
Source§impl Message for TxnResult
impl Message for TxnResult
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for TxnResult
Auto Trait Implementations§
impl Freeze for TxnResult
impl RefUnwindSafe for TxnResult
impl Send for TxnResult
impl Sync for TxnResult
impl Unpin for TxnResult
impl UnwindSafe for TxnResult
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