# Struct ethcore::filter::Filter [−] [src]

    pub struct Filter {
        pub from_block: BlockId,
        pub to_block: BlockId,
        pub address: Option<Vec<Address>>,
        pub topics: Vec<Option<Vec<H256>>>,
        pub limit: Option<usize>,
    }

Blockchain Filter.

## Fields

`from_block: BlockId`

Blockchain will be searched from this block.

`to_block: BlockId`

Till this block.

`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.

`limit: Option<usize>`

Logs limit

If None, return all logs If specified, should only return last `n` logs.

## Methods

### `impl Filter`
[src]

#### `fn bloom_possibilities(&self) -> Vec<H2048>`

Returns combinations of each address and topic.

#### `fn matches(&self, log: &LogEntry) -> bool`

Returns true if given log entry matches filter.

## Trait Implementations

### `impl Debug for Filter`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl PartialEq for Filter`
[src]

#### `fn eq(&self, __arg_0: &Filter) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &Filter) -> bool`

This method tests for `!=`.

### `impl Clone for Filter`
[src]

#### `fn clone(&self) -> Self`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)