# query.FilterEnum.filter_name

- **Module:** query
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/84de9258a07d10bdd5f6da01b016a9ae06fe1210/crates/libtmux/src/query.rs#L776
- **Page:** https://libtmux.org/en/rs/latest/reference/query-filterenum-filter_name/

```
pub trait FilterEnum
fn filter_name(&self) -> &'static str;
```

Return this value's stable filter string.

## Examples

```rust
use libtmux::query::FilterEnum;

enum State { Ready }
impl FilterEnum for State {
    const FILTER_VARIANTS: &'static [&'static str] = &["ready"];
    fn filter_name(&self) -> &'static str { "ready" }
}
assert_eq!(State::Ready.filter_name(), "ready");
```

## Parameters

- `&self`
