# query.private.Predicate

- **Module:** query.private
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/query/private.rs#L82
- **Page:** https://libtmux.org/en/rs/latest/reference/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

- `field` (method): Return the stable field name used by generated dispatch.
- `matches_text` (method): Match a strict UTF-8 candidate with this text predicate.
- `matches_bool` (method): Match a boolean candidate with this boolean predicate.
- `matches_signed` (method): Match a signed candidate widened without loss to `i128`.
- `matches_unsigned` (method): Match an unsigned candidate widened without loss to `u128`.
- `matches_enum` (method): Match a custom enum candidate's stable filter string.
- `matches_many` (method): Match this relation predicate against already-loaded related values.
- `matches_one` (method): Match this relation predicate against one already-loaded value.
- `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 this predicate for one fixed-width integer kind.
- `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`.
