#[non_exhaustive]pub struct QueryHeader {
pub source: Option<String>,
pub contigs: Vec<Contig>,
pub naming_convention: NamingConvention,
pub md5_set: HashSet<String>,
pub sha512t24u_set: HashSet<String>,
pub name_length_set: HashSet<(String, u64)>,
pub alias_length_set: HashSet<(String, u64)>,
pub signature: Option<String>,
}Expand description
A query header extracted from a BAM/SAM/CRAM file
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: Option<String>Source file path (if known)
contigs: Vec<Contig>All contigs from @SQ lines
naming_convention: NamingConventionDetected naming convention
md5_set: HashSet<String>Set of MD5s present in header
sha512t24u_set: HashSet<String>Set of sha512t24u digests present in header
name_length_set: HashSet<(String, u64)>Set of (exact_name, length) pairs for matching
alias_length_set: HashSet<(String, u64)>Set of (alias, length) pairs for alias-based matching
signature: Option<String>Signature for exact matching
Implementations§
Source§impl QueryHeader
impl QueryHeader
Trait Implementations§
Source§impl Clone for QueryHeader
impl Clone for QueryHeader
Source§fn clone(&self) -> QueryHeader
fn clone(&self) -> QueryHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryHeader
impl Debug for QueryHeader
Source§impl<'de> Deserialize<'de> for QueryHeader
impl<'de> Deserialize<'de> for QueryHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueryHeader
impl RefUnwindSafe for QueryHeader
impl Send for QueryHeader
impl Sync for QueryHeader
impl Unpin for QueryHeader
impl UnsafeUnpin for QueryHeader
impl UnwindSafe for QueryHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more