pub struct Decision {
pub id: String,
pub timestamp: DateTime<Utc>,
pub context: DecisionContext,
pub decision_type: String,
pub input: Value,
pub output: Value,
pub metadata: Value,
}Expand description
A captured user decision
Fields§
§id: StringUnique identifier for the decision
timestamp: DateTime<Utc>When the decision was made
context: DecisionContextContext in which the decision was made
decision_type: StringType of decision (e.g., “code_generation”, “refactoring”)
input: ValueInput that led to the decision
output: ValueOutput of the decision
metadata: ValueAdditional metadata
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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 Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnwindSafe for Decision
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