pub struct CompressionRule {
pub id: String,
pub tool_glob: Option<String>,
pub pattern: String,
pub replacement_template: String,
pub hit_count: i64,
pub source: String,
pub created_at: String,
}Expand description
A single compression rule stored in the database.
Fields§
§id: StringUUID v4 string identifier.
tool_glob: Option<String>Optional glob pattern matching tool names (e.g., "shell", "web_*").
pattern: StringRegex pattern applied to tool output.
replacement_template: StringReplacement template (may reference capture groups, e.g. "$1").
hit_count: i64Number of times this rule has matched. Updated by CompressionRuleStore::increment_hits.
source: StringOrigin of this rule: "operator" (config-inserted) or "llm-evolved" (auto-generated).
created_at: StringRFC 3339 creation timestamp.
Trait Implementations§
Source§impl Clone for CompressionRule
impl Clone for CompressionRule
Source§fn clone(&self) -> CompressionRule
fn clone(&self) -> CompressionRule
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 CompressionRule
impl Debug for CompressionRule
Source§impl<'a, R: Row> FromRow<'a, R> for CompressionRule
impl<'a, R: Row> FromRow<'a, R> for CompressionRule
Auto Trait Implementations§
impl Freeze for CompressionRule
impl RefUnwindSafe for CompressionRule
impl Send for CompressionRule
impl Sync for CompressionRule
impl Unpin for CompressionRule
impl UnsafeUnpin for CompressionRule
impl UnwindSafe for CompressionRule
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<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