pub struct DecayScore {
pub score: Option<f32>,
pub base_score: Option<f32>,
pub decayed: Option<bool>,
pub decaying_model: Option<Box<DecayScoreDecayingModel>>,
}
Fields§
§score: Option<f32>
§base_score: Option<f32>
§decayed: Option<bool>
§decaying_model: Option<Box<DecayScoreDecayingModel>>
Implementations§
Source§impl DecayScore
impl DecayScore
pub fn new() -> DecayScore
Trait Implementations§
Source§impl Clone for DecayScore
impl Clone for DecayScore
Source§fn clone(&self) -> DecayScore
fn clone(&self) -> DecayScore
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 DecayScore
impl Debug for DecayScore
Source§impl Default for DecayScore
impl Default for DecayScore
Source§fn default() -> DecayScore
fn default() -> DecayScore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecayScore
impl<'de> Deserialize<'de> for DecayScore
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 DecayScore
impl PartialEq for DecayScore
Source§impl Serialize for DecayScore
impl Serialize for DecayScore
impl StructuralPartialEq for DecayScore
Auto Trait Implementations§
impl Freeze for DecayScore
impl RefUnwindSafe for DecayScore
impl Send for DecayScore
impl Sync for DecayScore
impl Unpin for DecayScore
impl UnwindSafe for DecayScore
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