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
sourcepub fn new(id: impl Into<String>, format: Format, request: Request) -> Self
pub fn new(id: impl Into<String>, format: Format, request: Request) -> Self
Create a new query.
sourcepub fn new_with_default_request(id: impl Into<String>, format: Format) -> Self
pub fn new_with_default_request(id: impl Into<String>, format: Format) -> Self
Create a new query with a default request.
sourcepub fn with_format(self, format: Format) -> Self
pub fn with_format(self, format: Format) -> Self
Set the format.
sourcepub fn with_class(self, class: Class) -> Self
pub fn with_class(self, class: Class) -> Self
Set the class.
sourcepub fn with_reference_name(self, reference_name: impl Into<String>) -> Self
pub fn with_reference_name(self, reference_name: impl Into<String>) -> Self
Set the reference name.
sourcepub fn with_start(self, start: u32) -> Self
pub fn with_start(self, start: u32) -> Self
Set the interval.
sourcepub fn with_fields(self, fields: Fields) -> Self
pub fn with_fields(self, fields: Fields) -> Self
Set the interval.
Set the interval.
Set no tags.
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
pub fn request(&self) -> &Request
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.