# LibTmux.SessionWhere

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/criteria_generated.jl#L124
- **Bases:** [`LibTmux.Criterion`](/en/julia/latest/reference/libtmux-criterion/)
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-sessionwhere/

```
LibTmux.SessionWhere(clauses::Tuple{Vararg{LibTmux._FieldClause}}, ::Val{:validated})

LibTmux.SessionWhere(; id, name, attached_clients, windows, windowlinks)
```

Match captured `SessionSnapshot` values without I/O. Omitted keywords are unconstrained. Explicit `nothing` requires nullable captured absence. All specified fields and related records are checked for coverage first.

```julia
SessionWhere(; id, name, attached_clients, windows, windowlinks)
```



Keywords:

  * `id` (SessionID): Session identity.
  * `name` (String): Session name.
  * `attached_clients` (Integer): Attached client count observed by tmux.
  * `windows` (relation): Unique windows reached through complete captured session links.
  * `windowlinks` (relation): Complete captured links including session-specific indices.

## Methods

### `LibTmux.SessionWhere(clauses::Tuple{Vararg{LibTmux._FieldClause}}, ::Val{:validated})`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/criteria_generated.jl#L141).

### `LibTmux.SessionWhere(; id, name, attached_clients, windows, windowlinks)`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/criteria_generated.jl#L143).

## Parameters

- `clauses` (`Tuple{Vararg{LibTmux._FieldClause}}`) (for `SessionWhere(clauses, argument2)`)
- `argument2` (`Base.Val{:validated}`) (for `SessionWhere(clauses, argument2)`)
- `id` (for `SessionWhere(id, name, attached_clients, windows, windowlinks)`)
  Default: `_UNCONSTRAINED`.
- `name` (for `SessionWhere(id, name, attached_clients, windows, windowlinks)`)
  Default: `_UNCONSTRAINED`.
- `attached_clients` (for `SessionWhere(id, name, attached_clients, windows, windowlinks)`)
  Default: `_UNCONSTRAINED`.
- `windows` (for `SessionWhere(id, name, attached_clients, windows, windowlinks)`)
  Default: `_UNCONSTRAINED`.
- `windowlinks` (for `SessionWhere(id, name, attached_clients, windows, windowlinks)`)
  Default: `_UNCONSTRAINED`.

## Members

### Other members

- `_clauses` (property)
