pub struct CognitivePatch {
pub patch_id: Uuid,
pub description: String,
pub code: String,
pub target_module: String,
pub expected_effect: String,
pub risk_level: f64,
pub created_at: UtcTimestamp,
pub effect: RuleEffect,
}Expand description
Data structure representing cognitive patch.
Fields§
§patch_id: UuidIdentifier for the patch.
description: StringDescription for this value.
code: StringCode for this value.
target_module: StringTarget module for this value.
expected_effect: StringExpected effect for this value.
risk_level: f64Risk level for this value.
created_at: UtcTimestampUTC timestamp when the checkpoint was created.
effect: RuleEffectEffect for this value.
Trait Implementations§
Source§impl Clone for CognitivePatch
impl Clone for CognitivePatch
Source§impl Debug for CognitivePatch
impl Debug for CognitivePatch
Source§impl<'de> Deserialize<'de> for CognitivePatch
impl<'de> Deserialize<'de> for CognitivePatch
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 Forget for CognitivePatch
impl Freeze for CognitivePatch
impl Move for CognitivePatch
impl RefUnwindSafe for CognitivePatch
impl Send for CognitivePatch
impl Sync for CognitivePatch
impl Unpin for CognitivePatch
impl UnsafeUnpin for CognitivePatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
impl UnwindSafe for CognitivePatchwhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, f64>: UnwindSafe,
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