Struct pchain_types::blockchain::CommandReceipt
source · pub struct CommandReceipt {
pub exit_status: ExitStatus,
pub gas_used: u64,
pub return_values: Vec<u8>,
pub logs: Vec<Log>,
}Expand description
A CommandReceipt summarizes the result of execution of a Command.
Fields§
§exit_status: ExitStatusExit status tells whether the corresponding command in the sequence succeeded in doing its operation, and, if it failed, whether the failure is because of gas exhaustion or some other reason.
gas_used: u64How much gas was used in the execution of the transaction. This will at most be the transaction’s gas limit.
return_values: Vec<u8>The return value of the corresponding command.
logs: Vec<Log>The logs emitted during the corresponding call command.
Trait Implementations§
source§impl BorshDeserialize for CommandReceiptwhere
ExitStatus: BorshDeserialize,
u64: BorshDeserialize,
Vec<u8>: BorshDeserialize,
Vec<Log>: BorshDeserialize,
impl BorshDeserialize for CommandReceiptwhere ExitStatus: BorshDeserialize, u64: BorshDeserialize, Vec<u8>: BorshDeserialize, Vec<Log>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for CommandReceiptwhere
ExitStatus: BorshSerialize,
u64: BorshSerialize,
Vec<u8>: BorshSerialize,
Vec<Log>: BorshSerialize,
impl BorshSerialize for CommandReceiptwhere ExitStatus: BorshSerialize, u64: BorshSerialize, Vec<u8>: BorshSerialize, Vec<Log>: BorshSerialize,
source§impl Clone for CommandReceipt
impl Clone for CommandReceipt
source§fn clone(&self) -> CommandReceipt
fn clone(&self) -> CommandReceipt
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 CommandReceipt
impl Debug for CommandReceipt
source§impl Deserializable for CommandReceipt
impl Deserializable for CommandReceipt
source§impl PartialEq<CommandReceipt> for CommandReceipt
impl PartialEq<CommandReceipt> for CommandReceipt
source§fn eq(&self, other: &CommandReceipt) -> bool
fn eq(&self, other: &CommandReceipt) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for CommandReceipt
impl Serializable for CommandReceipt
impl Eq for CommandReceipt
impl StructuralEq for CommandReceipt
impl StructuralPartialEq for CommandReceipt
Auto Trait Implementations§
impl RefUnwindSafe for CommandReceipt
impl Send for CommandReceipt
impl Sync for CommandReceipt
impl Unpin for CommandReceipt
impl UnwindSafe for CommandReceipt
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