#[non_exhaustive]pub enum SearchMode {
Keywords,
Citation,
}Expand description
How SearchQuery::text should be interpreted.
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.
Keywords
Free-text keywords.
Citation
A whole, possibly messy reference string (“LeCun Y, Bengio Y. Deep
learning. Nature. 2015”), to be matched to the work it cites. Only
sent to providers declaring Capabilities::citation_search.
Trait Implementations§
Source§impl Clone for SearchMode
impl Clone for SearchMode
impl Copy for SearchMode
Source§impl Debug for SearchMode
impl Debug for SearchMode
Source§impl Default for SearchMode
impl Default for SearchMode
Source§impl<'de> Deserialize<'de> for SearchMode
impl<'de> Deserialize<'de> for SearchMode
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
impl Eq for SearchMode
Source§impl Hash for SearchMode
impl Hash for SearchMode
Source§impl PartialEq for SearchMode
impl PartialEq for SearchMode
Source§impl Serialize for SearchMode
impl Serialize for SearchMode
impl StructuralPartialEq for SearchMode
Auto Trait Implementations§
impl Forget for SearchMode
impl Freeze for SearchMode
impl RefUnwindSafe for SearchMode
impl Send for SearchMode
impl Sync for SearchMode
impl Unpin for SearchMode
impl UnsafeUnpin for SearchMode
impl UnwindSafe for SearchMode
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