pub struct PackageQuery {
pub terms: Vec<String>,
pub version: Option<String>,
}Expand description
A normalized package search query.
terms preserves the tokenized search text while version carries an
optional version filter that can be applied by the search layer.
Fields§
§terms: Vec<String>Search terms in display order.
version: Option<String>Optional version constraint supplied by the caller.
Implementations§
Trait Implementations§
Source§impl Clone for PackageQuery
impl Clone for PackageQuery
Source§fn clone(&self) -> PackageQuery
fn clone(&self) -> PackageQuery
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 moreAuto Trait Implementations§
impl Freeze for PackageQuery
impl RefUnwindSafe for PackageQuery
impl Send for PackageQuery
impl Sync for PackageQuery
impl Unpin for PackageQuery
impl UnwindSafe for PackageQuery
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