pub struct RecommendationConfig {
pub content_weight: f32,
pub collaborative_weight: f32,
pub age_decay: f32,
pub favor_series: bool,
}Fields§
§content_weight: f32§collaborative_weight: f32§age_decay: f32§favor_series: boolTrait Implementations§
Source§impl Clone for RecommendationConfig
impl Clone for RecommendationConfig
Source§fn clone(&self) -> RecommendationConfig
fn clone(&self) -> RecommendationConfig
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 RecommendationConfig
impl Debug for RecommendationConfig
Source§impl Default for RecommendationConfig
impl Default for RecommendationConfig
Source§impl<'de> Deserialize<'de> for RecommendationConfig
impl<'de> Deserialize<'de> for RecommendationConfig
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 RecommendationConfig
impl RefUnwindSafe for RecommendationConfig
impl Send for RecommendationConfig
impl Sync for RecommendationConfig
impl Unpin for RecommendationConfig
impl UnwindSafe for RecommendationConfig
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