pub struct SelectionRequest {
pub problem_class: ProblemClass,
pub goal: SelectionGoal,
pub native_available: bool,
pub prefer_pack: bool,
}Expand description
Selection request for catalog recommendations.
Fields§
§problem_class: ProblemClass§goal: SelectionGoal§native_available: boolIf false, recommendations demote native Ferrox candidates.
prefer_pack: boolIf true, pack surfaces are preferred over raw direct Suggestors when both fit.
Implementations§
Source§impl SelectionRequest
impl SelectionRequest
pub const fn new(problem_class: ProblemClass, goal: SelectionGoal) -> Self
pub const fn without_native(self) -> Self
pub const fn prefer_pack(self) -> Self
Trait Implementations§
Source§impl Clone for SelectionRequest
impl Clone for SelectionRequest
Source§fn clone(&self) -> SelectionRequest
fn clone(&self) -> SelectionRequest
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 SelectionRequest
impl Debug for SelectionRequest
Source§impl From<CommonUseCase> for SelectionRequest
impl From<CommonUseCase> for SelectionRequest
Source§fn from(use_case: CommonUseCase) -> Self
fn from(use_case: CommonUseCase) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SelectionRequest
impl PartialEq for SelectionRequest
Source§fn eq(&self, other: &SelectionRequest) -> bool
fn eq(&self, other: &SelectionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SelectionRequest
impl Eq for SelectionRequest
impl StructuralPartialEq for SelectionRequest
Auto Trait Implementations§
impl Freeze for SelectionRequest
impl RefUnwindSafe for SelectionRequest
impl Send for SelectionRequest
impl Sync for SelectionRequest
impl Unpin for SelectionRequest
impl UnsafeUnpin for SelectionRequest
impl UnwindSafe for SelectionRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.