pub struct LogDecisionInput {
pub session_pid: u32,
pub project: String,
pub tool: Option<String>,
pub command: Option<String>,
pub suggestion: PendingSuggestion,
pub user_action: String,
pub decision_type: DecisionScope,
pub override_reason: Option<String>,
}Expand description
What the TUI needs to record when the user resolves a brain suggestion. Carries the suggestion that was on screen at the time, plus what the user did and (optionally) why they overrode the brain.
Fields§
§session_pid: u32PID of the session the decision applies to.
project: StringProject label.
tool: Option<String>Tool name the suggestion targeted.
command: Option<String>Command / input string the suggestion targeted.
suggestion: PendingSuggestionThe brain’s suggestion the user is resolving.
user_action: StringWhat the user did — "accept", "reject", "deny_rule_override", etc.
decision_type: DecisionScopeWhether this was a session decision or an orchestration decision.
override_reason: Option<String>Why the user overrode a brain denial (if applicable).
Trait Implementations§
Source§impl Clone for LogDecisionInput
impl Clone for LogDecisionInput
Source§fn clone(&self) -> LogDecisionInput
fn clone(&self) -> LogDecisionInput
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 LogDecisionInput
impl Debug for LogDecisionInput
Source§impl<'de> Deserialize<'de> for LogDecisionInput
impl<'de> Deserialize<'de> for LogDecisionInput
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
impl Eq for LogDecisionInput
Source§impl PartialEq for LogDecisionInput
impl PartialEq for LogDecisionInput
Auto Trait Implementations§
impl Freeze for LogDecisionInput
impl RefUnwindSafe for LogDecisionInput
impl Send for LogDecisionInput
impl Sync for LogDecisionInput
impl Unpin for LogDecisionInput
impl UnsafeUnpin for LogDecisionInput
impl UnwindSafe for LogDecisionInput
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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