# query.fields.TextField

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

A typed handle for a portable text field on `T`.

All operators require strict UTF-8 in the candidate and return `false` for
invalid bytes before any outer logical negation. Rust membership authoring
accepts any `IntoIterator`; the version 1 wire representation uses an
array. A scalar string is not substring membership: use
[`TextField::contains`] for that operation.

## Example

```rust
use libtmux::query::TextField;
use libtmux::query::__private;

struct Row;
let field: TextField<Row> = __private::text_field("row", "name");
let _ = field.contains("build");
```

## Members

- `id` (attribute)
- `marker` (attribute)
- `eq` (method)
- `eq_ignore_case` (method)
- `contains` (method)
- `contains_ignore_case` (method)
- `starts_with` (method)
- `starts_with_ignore_case` (method)
- `ends_with` (method)
- `ends_with_ignore_case` (method)
- `is_in` (method)
- `not_in` (method)
- `regex` (method) — Compile and match a case-sensitive Rust regular expression.
- `regex_ignore_case` (method) — Compile and match a Unicode case-insensitive Rust regular expression.
