#[non_exhaustive]pub struct RecommenderGenerationConfig {
pub params: Option<Struct>,
/* private fields */
}Expand description
A Configuration to customize the generation of recommendations. Eg, customizing the lookback period considered when generating a recommendation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.params: Option<Struct>Parameters for this RecommenderGenerationConfig. These configs can be used by or are applied to all subtypes.
Implementations§
Source§impl RecommenderGenerationConfig
impl RecommenderGenerationConfig
pub fn new() -> Self
Sourcepub fn set_params<T>(self, v: T) -> Self
pub fn set_params<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_params<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_params<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RecommenderGenerationConfig
impl Clone for RecommenderGenerationConfig
Source§fn clone(&self) -> RecommenderGenerationConfig
fn clone(&self) -> RecommenderGenerationConfig
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 RecommenderGenerationConfig
impl Debug for RecommenderGenerationConfig
Source§impl Default for RecommenderGenerationConfig
impl Default for RecommenderGenerationConfig
Source§fn default() -> RecommenderGenerationConfig
fn default() -> RecommenderGenerationConfig
Returns the “default value” for a type. Read more
impl StructuralPartialEq for RecommenderGenerationConfig
Auto Trait Implementations§
impl Freeze for RecommenderGenerationConfig
impl RefUnwindSafe for RecommenderGenerationConfig
impl Send for RecommenderGenerationConfig
impl Sync for RecommenderGenerationConfig
impl Unpin for RecommenderGenerationConfig
impl UnsafeUnpin for RecommenderGenerationConfig
impl UnwindSafe for RecommenderGenerationConfig
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