pub struct SearchInCrateData {
pub crate_name: String,
pub query: String,
pub version: String,
pub item_type: Option<String>,
pub match_mode: String,
pub total: usize,
pub emitted: usize,
pub hits: Vec<SearchInCrateHit>,
pub truncated: bool,
pub source_url: String,
pub cache_hit: bool,
}Expand description
search-in-crate result set (truncated is true when total > emitted).
Fields§
§crate_name: StringRequested crate name.
query: StringText filter applied to hits.
version: StringRequested version token.
item_type: Option<String>Echo of the applied item-type filter when set.
match_mode: StringMatch mode applied (exact | prefix | substring).
total: usizeTotal classified hits before the limit.
emitted: usizeNumber of hits actually emitted.
hits: Vec<SearchInCrateHit>Emitted hits.
truncated: boolTrue when the hit list was cut by --limit (total > emitted).
source_url: StringFinal source URL of the all.html page.
cache_hit: boolTrue when the HTTP body was served from the local disk cache.
Trait Implementations§
Source§impl Clone for SearchInCrateData
impl Clone for SearchInCrateData
Source§fn clone(&self) -> SearchInCrateData
fn clone(&self) -> SearchInCrateData
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 moreSource§impl Debug for SearchInCrateData
impl Debug for SearchInCrateData
Source§impl<'de> Deserialize<'de> for SearchInCrateData
impl<'de> Deserialize<'de> for SearchInCrateData
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
Auto Trait Implementations§
impl Freeze for SearchInCrateData
impl RefUnwindSafe for SearchInCrateData
impl Send for SearchInCrateData
impl Sync for SearchInCrateData
impl Unpin for SearchInCrateData
impl UnsafeUnpin for SearchInCrateData
impl UnwindSafe for SearchInCrateData
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more