# query.private.bool_field

- **Module:** query.private
- **Package:** libtmux
- **Language:** Rust
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/query/private.rs#L770
- **Page:** https://libtmux.org/en/rs/latest/reference/query-private-bool_field/

```
query.private.bool_field(target: &'static str, field: &'static str) -> BoolField<T>
```

Construct a boolean handle for generated code.

## Example

```rust
use libtmux::query::BoolField;
use libtmux::query::__private;
struct Row;
let field: BoolField<Row> = __private::bool_field("row", "done");
assert!(format!("{field:?}").contains("done"));
```
