#[non_exhaustive]pub enum SearchType {
FullText,
SeriesId,
}Expand description
How series/search interprets the search text (the search_type request
parameter).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FullText
Match against series attributes and full text (full_text, FRED’s
default).
SeriesId
Match against the series ID (series_id).
Implementations§
Source§impl SearchType
impl SearchType
Sourcepub fn query_code(self) -> &'static str
pub fn query_code(self) -> &'static str
The FRED query code for this search type.
Trait Implementations§
Source§impl Clone for SearchType
impl Clone for SearchType
Source§fn clone(&self) -> SearchType
fn clone(&self) -> SearchType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SearchType
Source§impl Debug for SearchType
impl Debug for SearchType
impl Eq for SearchType
Source§impl PartialEq for SearchType
impl PartialEq for SearchType
Source§fn eq(&self, other: &SearchType) -> bool
fn eq(&self, other: &SearchType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchType
Auto Trait Implementations§
impl Freeze for SearchType
impl RefUnwindSafe for SearchType
impl Send for SearchType
impl Sync for SearchType
impl Unpin for SearchType
impl UnsafeUnpin for SearchType
impl UnwindSafe for SearchType
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