pub struct RetrievedItem {
pub kind: RetrievedItemKind,
pub key: String,
pub score: f32,
pub snippet: String,
}Fields§
§kind: RetrievedItemKind§key: String§score: f32§snippet: StringTrait Implementations§
Source§impl Clone for RetrievedItem
impl Clone for RetrievedItem
Source§fn clone(&self) -> RetrievedItem
fn clone(&self) -> RetrievedItem
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 RetrievedItem
impl Debug for RetrievedItem
Source§impl<'de> Deserialize<'de> for RetrievedItem
impl<'de> Deserialize<'de> for RetrievedItem
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
Source§impl PartialEq for RetrievedItem
impl PartialEq for RetrievedItem
Source§fn eq(&self, other: &RetrievedItem) -> bool
fn eq(&self, other: &RetrievedItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetrievedItem
impl Serialize for RetrievedItem
impl StructuralPartialEq for RetrievedItem
Auto Trait Implementations§
impl Freeze for RetrievedItem
impl RefUnwindSafe for RetrievedItem
impl Send for RetrievedItem
impl Sync for RetrievedItem
impl Unpin for RetrievedItem
impl UnsafeUnpin for RetrievedItem
impl UnwindSafe for RetrievedItem
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