pub struct OptimizationRule {
pub id: Uuid,
pub rule_description: String,
pub affected_traits: Vec<String>,
pub confidence: f64,
pub source_experiments_count: usize,
pub created_at: DateTime<Utc>,
}Expand description
A semantic rule extracted from a batch of experiments
Fields§
§id: UuidUnique ID of the rule
rule_description: StringHuman-readable description of the rule
affected_traits: Vec<String>List of traits this rule affects (e.g., [“aggression”, “analysis_depth”])
confidence: f64Confidence score (0.0 - 1.0)
source_experiments_count: usizeNumber of experiments that supported this rule
created_at: DateTime<Utc>When this rule was created
Implementations§
Trait Implementations§
Source§impl Clone for OptimizationRule
impl Clone for OptimizationRule
Source§fn clone(&self) -> OptimizationRule
fn clone(&self) -> OptimizationRule
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 moreSource§impl Debug for OptimizationRule
impl Debug for OptimizationRule
Source§impl<'de> Deserialize<'de> for OptimizationRule
impl<'de> Deserialize<'de> for OptimizationRule
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OptimizationRule
impl RefUnwindSafe for OptimizationRule
impl Send for OptimizationRule
impl Sync for OptimizationRule
impl Unpin for OptimizationRule
impl UnsafeUnpin for OptimizationRule
impl UnwindSafe for OptimizationRule
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