pub struct JsonSearchResult {
pub file: String,
pub span: Span,
pub lang: Option<Language>,
pub symbol: Option<String>,
pub score: f32,
pub signals: SearchSignals,
pub preview: String,
pub model: String,
}Fields§
§file: String§span: Span§lang: Option<Language>§symbol: Option<String>§score: f32§signals: SearchSignals§preview: String§model: StringTrait Implementations§
Source§impl Clone for JsonSearchResult
impl Clone for JsonSearchResult
Source§fn clone(&self) -> JsonSearchResult
fn clone(&self) -> JsonSearchResult
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 moreSource§impl Debug for JsonSearchResult
impl Debug for JsonSearchResult
Source§impl<'de> Deserialize<'de> for JsonSearchResult
impl<'de> Deserialize<'de> for JsonSearchResult
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 JsonSearchResult
impl RefUnwindSafe for JsonSearchResult
impl Send for JsonSearchResult
impl Sync for JsonSearchResult
impl Unpin for JsonSearchResult
impl UnwindSafe for JsonSearchResult
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