pub struct SearchCratesData {
pub query: String,
pub page: u32,
pub per_page: u32,
pub sort: String,
pub hits: Vec<CrateSearchHit>,
pub meta: SearchMeta,
pub cache_hit: bool,
pub truncated: bool,
}Expand description
Full search-crates data payload.
Fields§
§query: StringOriginal search query string.
page: u321-based page number used for the request.
per_page: u32Page size used for the request.
sort: StringSort order API token.
hits: Vec<CrateSearchHit>Search hits on this page.
meta: SearchMetaPagination metadata from crates.io.
cache_hit: boolTrue when the HTTP body was served from the local disk cache.
truncated: boolTrue when hits were reduced to fit --max-output-bytes (JSON path).
Trait Implementations§
Source§impl Clone for SearchCratesData
impl Clone for SearchCratesData
Source§impl Debug for SearchCratesData
impl Debug for SearchCratesData
Source§impl<'de> Deserialize<'de> for SearchCratesData
impl<'de> Deserialize<'de> for SearchCratesData
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 SearchCratesData
Source§impl PartialEq for SearchCratesData
impl PartialEq for SearchCratesData
Source§impl Serialize for SearchCratesData
impl Serialize for SearchCratesData
impl StructuralPartialEq for SearchCratesData
Auto Trait Implementations§
impl Freeze for SearchCratesData
impl RefUnwindSafe for SearchCratesData
impl Send for SearchCratesData
impl Sync for SearchCratesData
impl Unpin for SearchCratesData
impl UnsafeUnpin for SearchCratesData
impl UnwindSafe for SearchCratesData
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.