noodles_vcf/header/parser/
entry.rs

1use crate::header::{
2    record::value::{
3        map::{AlternativeAllele, Contig, Filter, Format, Info},
4        Map,
5    },
6    FileFormat,
7};
8
9/// A reference to an entry in the header.
10pub enum Entry<'a> {
11    /// A `fileformat` entry.
12    FileFormat(FileFormat),
13    /// An `INFO` entry.
14    Info(&'a str, &'a Map<Info>),
15    /// A `FILTER` entry.
16    Filter(&'a str, &'a Map<Filter>),
17    /// A `FORMAT` entry.
18    Format(&'a str, &'a Map<Format>),
19    /// An `ALT` entry.
20    AlternativeAllele(&'a str, &'a Map<AlternativeAllele>),
21    /// A `contig` entry.
22    Contig(&'a str, &'a Map<Contig>),
23    /// A nonstadard entry.
24    Other,
25    /// A header entry.
26    Header,
27}