pub struct TransactionFilter {
pub id: u32,
pub from: Option<Address>,
pub to: Option<Address>,
pub create: Option<bool>,
pub transaction_status: Option<i32>,
pub include_receipt: Option<bool>,
pub include_logs: Option<bool>,
pub include_transaction_trace: Option<bool>,
}Fields§
§id: u32§from: Option<Address>Filter based on the transaction’s sender address.
to: Option<Address>Filter based on the transaction’s recipient address.
create: Option<bool>/ Only return create transactions. Defaults to false.
transaction_status: Option<i32>Filter based on the transaction status.
Defaults to Succeeded.
include_receipt: Option<bool>Flag to request the transaction’s receipt. Defaults to false.
include_logs: Option<bool>Flag to request the transaction’s logs. Defaults to false.
include_transaction_trace: Option<bool>Flag to request the transaction’s trace. Defaults to false.
Implementations§
Source§impl TransactionFilter
impl TransactionFilter
Sourcepub fn create(&self) -> bool
pub fn create(&self) -> bool
Returns the value of create, or the default value if create is unset.
Sourcepub fn transaction_status(&self) -> TransactionStatusFilter
pub fn transaction_status(&self) -> TransactionStatusFilter
Returns the enum value of transaction_status, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_transaction_status(&mut self, value: TransactionStatusFilter)
pub fn set_transaction_status(&mut self, value: TransactionStatusFilter)
Sets transaction_status to the provided enum value.
Sourcepub fn include_receipt(&self) -> bool
pub fn include_receipt(&self) -> bool
Returns the value of include_receipt, or the default value if include_receipt is unset.
Sourcepub fn include_logs(&self) -> bool
pub fn include_logs(&self) -> bool
Returns the value of include_logs, or the default value if include_logs is unset.
Sourcepub fn include_transaction_trace(&self) -> bool
pub fn include_transaction_trace(&self) -> bool
Returns the value of include_transaction_trace, or the default value if include_transaction_trace is unset.
Trait Implementations§
Source§impl Clone for TransactionFilter
impl Clone for TransactionFilter
Source§fn clone(&self) -> TransactionFilter
fn clone(&self) -> TransactionFilter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransactionFilter
Source§impl Debug for TransactionFilter
impl Debug for TransactionFilter
Source§impl Default for TransactionFilter
impl Default for TransactionFilter
Source§impl Message for TransactionFilter
impl Message for TransactionFilter
Source§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.Source§impl PartialEq for TransactionFilter
impl PartialEq for TransactionFilter
Source§fn eq(&self, other: &TransactionFilter) -> bool
fn eq(&self, other: &TransactionFilter) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransactionFilter
Auto Trait Implementations§
impl Freeze for TransactionFilter
impl RefUnwindSafe for TransactionFilter
impl Send for TransactionFilter
impl Sync for TransactionFilter
impl Unpin for TransactionFilter
impl UnsafeUnpin for TransactionFilter
impl UnwindSafe for TransactionFilter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request