pub struct RankingOptions {
pub ranker: String,
pub score_threshold: Option<f32>,
}
Expand description
Options for search result ranking.
Fields§
§ranker: String
The ranker to use for the file search.
score_threshold: Option<f32>
The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.
Trait Implementations§
Source§impl Clone for RankingOptions
impl Clone for RankingOptions
Source§fn clone(&self) -> RankingOptions
fn clone(&self) -> RankingOptions
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 RankingOptions
impl Debug for RankingOptions
Source§impl<'de> Deserialize<'de> for RankingOptions
impl<'de> Deserialize<'de> for RankingOptions
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 RankingOptions
impl PartialEq for RankingOptions
Source§impl Serialize for RankingOptions
impl Serialize for RankingOptions
impl StructuralPartialEq for RankingOptions
Auto Trait Implementations§
impl Freeze for RankingOptions
impl RefUnwindSafe for RankingOptions
impl Send for RankingOptions
impl Sync for RankingOptions
impl Unpin for RankingOptions
impl UnwindSafe for RankingOptions
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