Struct consecrates::Query [−][src]
Describes options for a single query.
Fields
string: Option<String>
String passed to the api as query
page: Option<usize>
Number of the page to get, numbering starts at 1
per_page: Option<usize>
Number of results per page
keyword: Option<String>
Match crates that contain a certain string keyword
category: Option<Category>
Specify one of the available categories
sort: Option<Sorting>
Sort the results on the API query level
Implementations
impl Query
[src]
pub fn from_str(input: &str) -> Self
[src]
Parses raw string into a query struct.
Examples
Search for api
string in the web-programming
category, showing the
most recently updated crates first:
api cat=web sort=update
Search for net
string in the game-development
category, sorting by
amount of recent downloads.
net cat=gamedev sort=rdl
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Query
[src]
impl Send for Query
[src]
impl Sync for Query
[src]
impl Unpin for Query
[src]
impl UnwindSafe for Query
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,