Struct primitives::filter::LogFilterParams
source · pub struct LogFilterParams {
pub address: Option<Vec<Address>>,
pub topics: Vec<Option<Vec<H256>>>,
pub trusted: bool,
pub space: Space,
}
Expand description
Log event Filter.
Fields§
§address: Option<Vec<Address>>
Search addresses.
If None, match all. If specified, log must be produced by one of these addresses.
topics: Vec<Option<Vec<H256>>>
Search topics.
If None, match all. If specified, log must contain one of these topics.
trusted: bool
Indicate if the log filter can be trusted, so we do not need to check other fields.
It is false
if the Filter is constructed from RPCs,
and true
if it is generated within the process with trusted logics.
space: Space
Space: Conflux or Ethereum.
Log must be produced in this space.
Implementations§
Trait Implementations§
source§impl Clone for LogFilterParams
impl Clone for LogFilterParams
source§fn clone(&self) -> LogFilterParams
fn clone(&self) -> LogFilterParams
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 LogFilterParams
impl Debug for LogFilterParams
source§impl Default for LogFilterParams
impl Default for LogFilterParams
source§impl Hash for LogFilterParams
impl Hash for LogFilterParams
source§impl PartialEq for LogFilterParams
impl PartialEq for LogFilterParams
source§fn eq(&self, other: &LogFilterParams) -> bool
fn eq(&self, other: &LogFilterParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LogFilterParams
impl StructuralPartialEq for LogFilterParams
Auto Trait Implementations§
impl RefUnwindSafe for LogFilterParams
impl Send for LogFilterParams
impl Sync for LogFilterParams
impl Unpin for LogFilterParams
impl UnwindSafe for LogFilterParams
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