# FilterLookup

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/FilterLookup.swift#L10
- **Page:** https://libtmux.org/reference/swift/filterlookup/

Builds a filter from a `field__operator=value` lookup written as text.

For a query that arrives as a string and so cannot be checked by the
compiler: a command-line flag, a config file, a request from another
process. The spelling is the one Django and Python libtmux both use, so a
lookup written for either reads the same here.

Swift callers write ``FilterExpr`` from key paths instead and have the
compiler check the field and its type; nothing inside the library routes
through this.

## Members

- `parse(_:as:model:)` (method) — Builds an expression from one `field__operator=value` lookup.
