Struct hedera::ContractLogInfo
source · pub struct ContractLogInfo {
pub contract_id: ContractId,
pub bloom: Vec<u8>,
pub topics: Vec<Vec<u8>>,
pub data: Vec<u8>,
}
Expand description
The log information for an event returned by a smart contract function call. One function call may return several such events.
Fields§
§contract_id: ContractId
Address of the contract that emitted the event.
bloom: Vec<u8>
Bloom filter for this log.
topics: Vec<Vec<u8>>
A list of topics this log is relevent to.
data: Vec<u8>
The log’s data payload.
Implementations§
source§impl ContractLogInfo
impl ContractLogInfo
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new ContractLogInfo
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
source§impl Clone for ContractLogInfo
impl Clone for ContractLogInfo
source§fn clone(&self) -> ContractLogInfo
fn clone(&self) -> ContractLogInfo
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 ContractLogInfo
impl Debug for ContractLogInfo
source§impl PartialEq for ContractLogInfo
impl PartialEq for ContractLogInfo
source§fn eq(&self, other: &ContractLogInfo) -> bool
fn eq(&self, other: &ContractLogInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ContractLogInfo
impl StructuralPartialEq for ContractLogInfo
Auto Trait Implementations§
impl Freeze for ContractLogInfo
impl RefUnwindSafe for ContractLogInfo
impl Send for ContractLogInfo
impl Sync for ContractLogInfo
impl Unpin for ContractLogInfo
impl UnwindSafe for ContractLogInfo
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request