# FilterLookup

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/FilterLookup.swift#L11
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
