Struct TxResponse
pub struct TxResponse {}
Expand description
TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded.
Fields§
§height: i64
The block height
txhash: String
The transaction hash.
codespace: String
Namespace for the Code
code: u32
Response code.
data: String
Result bytes, if any.
raw_log: String
The output of the application’s logger (raw string). May be non-deterministic.
logs: Vec<AbciMessageLog>
The output of the application’s logger (typed). May be non-deterministic.
info: String
Additional information. May be non-deterministic.
gas_wanted: i64
Amount of gas requested for transaction.
gas_used: i64
Amount of gas consumed by transaction.
tx: Option<Any>
The request transaction bytes.
timestamp: String
Time of the previous block. For heights > 1, it’s the weighted median of the timestamps of the valid votes in the block.LastCommit. For height == 1, it’s genesis time.
events: Vec<Event>
Events defines all the events emitted by processing a transaction. Note, these events include those emitted by processing all the messages and those emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages.
Since: cosmos-sdk 0.42.11, 0.44.5, 0.45
Trait Implementations§
§impl Clone for TxResponse
impl Clone for TxResponse
§fn clone(&self) -> TxResponse
fn clone(&self) -> TxResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for TxResponse
impl Debug for TxResponse
§impl Default for TxResponse
impl Default for TxResponse
§fn default() -> TxResponse
fn default() -> TxResponse
§impl<'a> From<&'a TxResponse> for CosmosTxEvents<'a>
impl<'a> From<&'a TxResponse> for CosmosTxEvents<'a>
§fn from(resp: &'a TxResponse) -> CosmosTxEvents<'a>
fn from(resp: &'a TxResponse) -> CosmosTxEvents<'a>
§impl From<TxResponse> for CosmosTxEvents<'static>
impl From<TxResponse> for CosmosTxEvents<'static>
§fn from(resp: TxResponse) -> CosmosTxEvents<'static>
fn from(resp: TxResponse) -> CosmosTxEvents<'static>
§impl Message for TxResponse
impl Message for TxResponse
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.§impl Name for TxResponse
impl Name for TxResponse
§const NAME: &'static str = "TxResponse"
const NAME: &'static str = "TxResponse"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.§const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"
const PACKAGE: &'static str = "cosmos.base.abci.v1beta1"
.
, e.g. google.protobuf
.§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.§impl PartialEq for TxResponse
impl PartialEq for TxResponse
impl StructuralPartialEq for TxResponse
Auto Trait Implementations§
impl Freeze for TxResponse
impl RefUnwindSafe for TxResponse
impl Send for TxResponse
impl Sync for TxResponse
impl Unpin for TxResponse
impl UnwindSafe for TxResponse
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered
].