pub struct BackendRecallPolicy {
pub enabled: bool,
pub max_candidates: usize,
pub min_score: f32,
pub corpus_filter: Option<String>,
}Expand description
Recall policy for backend requests.
Fields§
§enabled: bool§max_candidates: usize§min_score: f32§corpus_filter: Option<String>Trait Implementations§
Source§impl Clone for BackendRecallPolicy
impl Clone for BackendRecallPolicy
Source§fn clone(&self) -> BackendRecallPolicy
fn clone(&self) -> BackendRecallPolicy
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 BackendRecallPolicy
impl Debug for BackendRecallPolicy
Source§impl Default for BackendRecallPolicy
impl Default for BackendRecallPolicy
Source§impl<'de> Deserialize<'de> for BackendRecallPolicy
impl<'de> Deserialize<'de> for BackendRecallPolicy
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 BackendRecallPolicy
impl RefUnwindSafe for BackendRecallPolicy
impl Send for BackendRecallPolicy
impl Sync for BackendRecallPolicy
impl Unpin for BackendRecallPolicy
impl UnwindSafe for BackendRecallPolicy
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