dbn 0.74.0

Library for working with Databento Binary Encoding (DBN)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{HasRType, Record, RecordHeader};

/// A [`Record`] that begins with the [`RecordHeader`] shared by DBN versions 1 through 3.
pub trait RecordV1: Record<Header = RecordHeader> {}

impl<T: Record<Header = RecordHeader>> RecordV1 for T {}

/// A [`HasRType`] record type that begins with the [`RecordHeader`] shared by DBN
/// versions 1 through 3.
pub trait HasRTypeV1: HasRType<Header = RecordHeader> {}

impl<T: HasRType<Header = RecordHeader>> HasRTypeV1 for T {}