pub struct RankingOptions {
pub ranker: Option<String>,
pub score_threshold: Option<f32>,
}
Fields§
§ranker: Option<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 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
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