pub struct SkillCandidate {
pub slug: String,
pub title: String,
pub body: String,
pub category: String,
pub recurrence: u32,
pub confidence: f32,
pub sources: Vec<String>,
}Expand description
A distilled pattern mined from a project’s memory, before the gate decides whether it is durable enough to become a rule.
Fields§
§slug: StringNormalized, prefix-free slug (e.g. stop-before-build).
title: StringOne-line human title (becomes the rule description).
body: StringThe actionable body of the rule.
category: StringOrigin category (decision / insight / convention / …).
recurrence: u32How many sources reinforced this pattern (confirmations + mentions).
confidence: f32Highest source confidence (0.0..=1.0).
sources: Vec<String>Provenance: source session ids / agent ids.
Trait Implementations§
Source§impl Clone for SkillCandidate
impl Clone for SkillCandidate
Source§fn clone(&self) -> SkillCandidate
fn clone(&self) -> SkillCandidate
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 moreAuto Trait Implementations§
impl Freeze for SkillCandidate
impl RefUnwindSafe for SkillCandidate
impl Send for SkillCandidate
impl Sync for SkillCandidate
impl Unpin for SkillCandidate
impl UnsafeUnpin for SkillCandidate
impl UnwindSafe for SkillCandidate
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more