pub struct RescoreQuery {
pub query_weight: Option<f64>,
pub score_mode: Option<String>,
pub rescore_query: Query,
pub rescore_query_weight: Option<f64>,
}Fields§
§query_weight: Option<f64>The relative importance of the original query as compared to the rescore query.
score_mode: Option<String>§rescore_query: Query§rescore_query_weight: Option<f64>The relative importance of the rescore query as compared to the original query.
Implementations§
Source§impl RescoreQuery
impl RescoreQuery
pub fn new(rescore_query: Query) -> RescoreQuery
Trait Implementations§
Source§impl Clone for RescoreQuery
impl Clone for RescoreQuery
Source§fn clone(&self) -> RescoreQuery
fn clone(&self) -> RescoreQuery
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 RescoreQuery
impl Debug for RescoreQuery
Source§impl Default for RescoreQuery
impl Default for RescoreQuery
Source§fn default() -> RescoreQuery
fn default() -> RescoreQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RescoreQuery
impl<'de> Deserialize<'de> for RescoreQuery
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 RescoreQuery
impl PartialEq for RescoreQuery
Source§fn eq(&self, other: &RescoreQuery) -> bool
fn eq(&self, other: &RescoreQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RescoreQuery
impl Serialize for RescoreQuery
impl StructuralPartialEq for RescoreQuery
Auto Trait Implementations§
impl Freeze for RescoreQuery
impl RefUnwindSafe for RescoreQuery
impl Send for RescoreQuery
impl Sync for RescoreQuery
impl Unpin for RescoreQuery
impl UnsafeUnpin for RescoreQuery
impl UnwindSafe for RescoreQuery
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