# target.SessionId

- **Module:** target
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/84de9258a07d10bdd5f6da01b016a9ae06fe1210/crates/libtmux/src/target.rs#L125
- **Page:** https://libtmux.org/en/rs/latest/reference/target-sessionid/

A native tmux session ID such as `$1`.

Leading zeroes are accepted but canonicalized to the numeric tmux ID.

## Examples

```rust
use libtmux::SessionId;

let id: SessionId = "$001".parse()?;
assert_eq!(id.as_ref(), "$1");
```
