pub enum ResolutionStrategy {
ByName(String),
ByQuery(String),
ByTag(String),
}Expand description
Defines a strategy for resolving a skill into a context.
Variants§
ByName(String)
Resolve by exact skill name. Fails if name not found.
ByQuery(String)
Resolve by scoring against a user query. Fails if no skill meets threshold.
ByTag(String)
Resolve by looking for a skill with a specific tag (e.g., “fallback”, “default”). Picks the best-scored match among skills with this tag.
Trait Implementations§
Source§impl Clone for ResolutionStrategy
impl Clone for ResolutionStrategy
Source§fn clone(&self) -> ResolutionStrategy
fn clone(&self) -> ResolutionStrategy
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 moreAuto Trait Implementations§
impl Freeze for ResolutionStrategy
impl RefUnwindSafe for ResolutionStrategy
impl Send for ResolutionStrategy
impl Sync for ResolutionStrategy
impl Unpin for ResolutionStrategy
impl UnsafeUnpin for ResolutionStrategy
impl UnwindSafe for ResolutionStrategy
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