noodles_sam/header/
record.rs

1//! SAM header record.
2
3pub mod kind;
4pub mod value;
5
6use bstr::BString;
7
8pub use self::kind::Kind;
9use self::value::{
10    map::{self, Program, ReadGroup, ReferenceSequence},
11    Map,
12};
13
14/// A SAM header record.
15#[derive(Clone, Debug, Eq, PartialEq)]
16pub enum Record {
17    /// A header (`HD`) record.
18    Header(Map<map::Header>),
19    /// A reference sequence (`SQ`) record.
20    ReferenceSequence(BString, Map<ReferenceSequence>),
21    /// A read group (`RG`) record.
22    ReadGroup(BString, Map<ReadGroup>),
23    /// A program (`PG`) record.
24    Program(BString, Map<Program>),
25    /// A comment (`CO`) record.
26    Comment(BString),
27}