# query.private.Predicate

- **Module:** query.private
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/query/private.rs#L82
- **Page:** https://libtmux.org/reference/rs/query-private-predicate/

One opaque predicate passed to generated candidate dispatch.

Downstream code can inspect only the stable field name and call the
typed matching or validation helpers.

The [`crate::query::Filterable`] example executes every scalar helper
through a hand-written generated-code expansion.

## Members

- `new` (method)
- `from_wire` (method)
- `clone_internal` (method)
- `eq_internal` (method)
- `target` (method)
- `operator_label` (method)
- `bind_target_internal` (method)
- `relation_internal` (method)
- `scalar_internal` (method)
- `is_resolved_internal` (method)
- `field` (method)
- `matches_text` (method)
- `matches_bool` (method)
- `matches_signed` (method)
- `matches_unsigned` (method)
- `matches_enum` (method)
- `matches_many` (method)
- `matches_one` (method)
- `validate_text` (method) — Validate that this predicate is a well-formed text predicate.
- `validate_bool` (method) — Validate that this predicate is a well-formed boolean predicate.
- `validate_integer` (method)
- `validate_enum` (method) — Validate this predicate against a custom enum's stable variants.
- `validate_many` (method) — Validate this predicate as a to-many relation over `U`.
- `validate_one` (method) — Validate this predicate as a to-one relation over `U`.
