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

Source: https://databento.com/docs/api-historical/helpers/record-ref-get


### RecordRef::get

Get a reference to a particular record type.
Usually paired with `if let Some(...)` or with [has](https://databento.com/docs/api-historical/helpers/record-ref-has.md).

#### API method

```rust
pub fn get<T: HasRType>(&self) -> Option<&'a T>;
```

#### Returns

`Option<&'a T`

A reference to the underlying record of type `T` or `None` if the `RecordRef` points to another type.
