On this page
FilterSchema
- Package
- libtmux-swift
- Source
- Sources/LibTmux/FilterSchema.swift
- struct FilterSchema : struct FilterSchema
-
The filtering vocabulary, as a document.
A
FilterExprnames fields by wire id, which is only useful to another language if that language can learn what the ids are. This is that document: versioned,Codable, and generated from the same registry the Swift API lowers through, so a TypeScript, Rust, or CLI consumer reads the vocabulary rather than guessing it.
10 declared, 0 inherited
Members
- ValueType enum The kinds of value a field can hold. Deliberately three: tmux reports everything as text, and these are the only distinctions a filter has to make to compare correctly.
- !=(_:_:) function Returns a Boolean value indicating whether two values are not equal.
- field(named:in:) method The field an id or alias names, within one model.
- init(from:) method Creates a new instance by decoding from the given decoder.
- current property The vocabulary this build understands.
- models property One entry per filterable type, named as a client would ask for it.
- schemaVersion property The
versionthis document was written with, so a reader can tell whether it understands the shape before trying to use it. - version property Bumped when the document's *shape* changes. Adding a field or an alias does not bump it; those are additive and old readers keep working.
- Field struct One filterable field, and every name that reaches it.
- Model struct The filterable fields of one type.