Struct htsget_config::types::Query
source · pub struct Query { /* private fields */ }Expand description
A query contains all the parameters that can be used when requesting
a search for either of reads or variants.
Implementations§
source§impl Query
impl Query
pub fn new(id: impl Into<String>, format: Format) -> Self
pub fn set_id(&mut self, id: impl Into<String>)
pub fn with_id(self, id: impl Into<String>) -> Self
pub fn with_format(self, format: Format) -> Self
pub fn with_class(self, class: Class) -> Self
pub fn with_reference_name(self, reference_name: impl Into<String>) -> Self
pub fn with_start(self, start: u32) -> Self
pub fn with_end(self, end: u32) -> Self
pub fn with_fields(self, fields: Fields) -> Self
pub fn id(&self) -> &str
pub fn format(&self) -> Format
pub fn class(&self) -> Class
pub fn reference_name(&self) -> Option<&str>
pub fn interval(&self) -> Interval
pub fn fields(&self) -> &Fields
Trait Implementations§
source§impl PartialEq<Query> for Query
impl PartialEq<Query> for Query
impl Eq for Query
impl StructuralEq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.