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

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


### RecordRef::header

Get a reference to the `RecordHeader` which is found at the start of every DBN record.
This provides some basic information about the record like instrument ID without first determining its type.

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

#### API method

```rust
pub fn header(&self) -> &'a RecordHeader;
```

#### Returns

An immutable reference to the record's header (`RecordHeader`).
