Available languages: [Python](https://databento.com/docs/api-live/helpers/record-ref.python.md) · [C++](https://databento.com/docs/api-live/helpers/record-ref.cpp.md) · [Rust](https://databento.com/docs/api-live/helpers/record-ref.rust.md) · [Raw](https://databento.com/docs/api-live/helpers/record-ref.raw.md)

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


### RecordRef

A wrapper around a non-owning immutable reference to a [DBN](https://databento.com/docs/conventions/databento-binary-encoding.md) record.
This wrapper allows for mixing of record types and [schemas](https://databento.com/docs/schemas/whats-a-schema.md), and runtime record polymorphism.

Both [AsyncRecordDecoder::decode_record_ref](https://databento.com/docs/api-historical/helpers/dbn-store-decode-record-ref.md) and [LiveClient::next_record](https://databento.com/docs/api-live/client/next-record.md) return `RecordRef` objects.

> **See also**
>
> The [crate documentation](https://docs.rs/dbn/latest/dbn/record_ref/struct.RecordRef.html) for a comprehensive list of methods and implemented traits.

#### API method

```rust
pub struct RecordRef<'a> { /* private fields */ }
```
