Available languages: [Python](https://databento.com/docs/api-historical/helpers/pit-symbol-map-get-for-rec.python.md) · [C++](https://databento.com/docs/api-historical/helpers/pit-symbol-map-get-for-rec.cpp.md) · [Rust](https://databento.com/docs/api-historical/helpers/pit-symbol-map-get-for-rec.rust.md) · [HTTP](https://databento.com/docs/api-historical/helpers/pit-symbol-map-get-for-rec.http.md)

Source: https://databento.com/docs/api-historical/helpers/pit-symbol-map-get-for-rec


### PitSymbolMap::get_for_rec

Get the symbol mapping for a record.

> **Info**
>
> This method is part of the `SymbolIndex` trait, so you must import the trait to call this method.

#### API method

```rust
pub fn get_for_rec<R: Record>(&self, record: &R) -> Option<&String>;
```

#### Parameters

| Parameter | Type | Description |
| `record` | Record | The record to fetch a symbol mapping for. |

#### Returns

`Option<&String>`

The corresponding text symbol for the record's instrument ID.
