pub struct ScoreConfig {
pub boost: Option<f64>,
pub function: Option<String>,
}Expand description
Score configuration.
Fields§
§boost: Option<f64>Boost factor.
function: Option<String>Score function.
Trait Implementations§
Source§impl Clone for ScoreConfig
impl Clone for ScoreConfig
Source§fn clone(&self) -> ScoreConfig
fn clone(&self) -> ScoreConfig
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 ScoreConfig
impl Debug for ScoreConfig
Source§impl Default for ScoreConfig
impl Default for ScoreConfig
Source§fn default() -> ScoreConfig
fn default() -> ScoreConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreConfig
impl<'de> Deserialize<'de> for ScoreConfig
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 ScoreConfig
impl RefUnwindSafe for ScoreConfig
impl Send for ScoreConfig
impl Sync for ScoreConfig
impl Unpin for ScoreConfig
impl UnwindSafe for ScoreConfig
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