pub struct RememberRuleInput {
pub title: String,
pub body: String,
pub file_patterns: Option<Vec<String>>,
pub bad_code: Option<String>,
pub good_code: Option<String>,
pub severity: Option<String>,
pub origin: Option<String>,
}Expand description
Input for skills::remember() — the 4th human-feedback channel.
Records a rule the user told an AI agent (or themselves via CLI) to
remember during a coding conversation. Stored locally with
origin = 'conversation', base confidence 0.6 (slightly below manual
since the agent transcribed free-text), and published = false so it
stays on this device until the user explicitly publishes it.
Fields§
§title: StringShort rule title (becomes skill name and the H1 in SKILL.md).
body: StringWhat the rule is and why — full natural-language body. The agent should transcribe the user’s own words; not summarise them away.
file_patterns: Option<Vec<String>>Optional glob patterns the rule applies to (e.g. ["**/*.ts"]).
Empty = universal rule. Drives strict file-pattern cascade.
bad_code: Option<String>Optional bad-code snippet the user pointed at (the offending pattern).
good_code: Option<String>Optional good-code snippet the user proposed (the corrected version).
severity: Option<String>Optional severity hint surfaced in the rule body. low|medium|high.
origin: Option<String>Channel that recorded this — defaults to conversation. Tests and
the CLI override to manual so the discount + audit-tag behaviour
can be exercised explicitly.
Trait Implementations§
Source§impl Clone for RememberRuleInput
impl Clone for RememberRuleInput
Source§fn clone(&self) -> RememberRuleInput
fn clone(&self) -> RememberRuleInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RememberRuleInput
impl Debug for RememberRuleInput
Source§impl<'de> Deserialize<'de> for RememberRuleInput
impl<'de> Deserialize<'de> for RememberRuleInput
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>,
Auto Trait Implementations§
impl Freeze for RememberRuleInput
impl RefUnwindSafe for RememberRuleInput
impl Send for RememberRuleInput
impl Sync for RememberRuleInput
impl Unpin for RememberRuleInput
impl UnsafeUnpin for RememberRuleInput
impl UnwindSafe for RememberRuleInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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