# server.discovery.WindowTreeFields

- **Module:** server.discovery
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server/discovery.rs#L435
- **Page:** https://libtmux.org/en/rs/latest/reference/server-discovery-windowtreefields/

Typed filter handles for [`WindowTree`].

## Example

```rust
use libtmux::query::Filterable as _;
use libtmux::{Pane, WindowTree};

let windows = WindowTree::filter_fields();
let panes = Pane::filter_fields();

// `any` asks whether some pane matches, which is not the same question as
// filtering the panes themselves: this keeps whole windows.
let has_dead_pane = windows.panes.any(panes.pane_dead.eq(true));
```

## Members

- `window` (attribute): The window's own fields, the same set [`Window`] filters on.
- `panes` (attribute): The panes in this window.
